From ab817e16e1cda991ca8f3cc1b47ddd304fc689fd Mon Sep 17 00:00:00 2001 From: Nonimart Date: Tue, 30 Sep 2025 11:53:27 +0200 Subject: [PATCH] FIX updating build_footnotes_index_from_content with new attribute data-footnote-content instaed of simply footnote-content --- includes/utilities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/utilities.php b/includes/utilities.php index 0ba6ab3..975b5f2 100644 --- a/includes/utilities.php +++ b/includes/utilities.php @@ -203,8 +203,8 @@ function build_footnotes_index_from_content($content) } $footnotes = []; - // Trouve les balises avec classe footnote-reference ET attribut footnote-content (ordre flexible) - $pattern = '/]*class="[^"]*footnote-reference[^"]*"[^>]*footnote-content="([^"]*)"[^>]*>|]*footnote-content="([^"]*)"[^>]*class="[^"]*footnote-reference[^"]*"[^>]*>/i'; + // Trouve les balises avec classe footnote-reference ET attribut data-footnote-content (ordre flexible) + $pattern = '/]*class="[^"]*footnote-reference[^"]*"[^>]*data-footnote-content="([^"]*)"[^>]*>|]*data-footnote-content="([^"]*)"[^>]*class="[^"]*footnote-reference[^"]*"[^>]*>/i'; $has_footnotes = preg_match_all($pattern, $content, $matches, PREG_SET_ORDER); if ($has_footnotes) {