From bb26cace39ae163b1e25b9c8a0a61f2d7465d71b Mon Sep 17 00:00:00 2001 From: Miguel Fonseca <150562+mcsf@users.noreply.github.com> Date: Tue, 11 Jul 2023 17:59:01 +0100 Subject: [PATCH] Add comments, fix spacing, appease linter --- lib/compat/wordpress-6.3/footnotes.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/compat/wordpress-6.3/footnotes.php b/lib/compat/wordpress-6.3/footnotes.php index 963f1f3bb301f..45f4c74b05e37 100644 --- a/lib/compat/wordpress-6.3/footnotes.php +++ b/lib/compat/wordpress-6.3/footnotes.php @@ -1,11 +1,24 @@ \s*\d+\s*_'; + static $footnote_pattern = '_\s*\d+\s*_'; return preg_replace( $footnote_pattern, '', $content ); }