From 3aa99a5c38e9452d15b1174309353414b867b412 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 29 Jan 2026 19:19:25 +0100 Subject: [PATCH 1/4] Increase max bookmarks to 10,000 --- src/wp-includes/html-api/class-wp-html-processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index 55f955f2c1a9a..b316e724577dd 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -151,7 +151,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { * * @var int */ - const MAX_BOOKMARKS = 100; + const MAX_BOOKMARKS = 10_000; /** * Holds the working state of the parser, including the stack of From 632e28c988b4e006cfcfca34b97cb490ae60255a Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 29 Jan 2026 19:29:28 +0100 Subject: [PATCH 2/4] More reasonable 1,000 --- src/wp-includes/html-api/class-wp-html-processor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index b316e724577dd..6f72650cf72cc 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -151,7 +151,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { * * @var int */ - const MAX_BOOKMARKS = 10_000; + const MAX_BOOKMARKS = 1_000; /** * Holds the working state of the parser, including the stack of From 848783e77ec72be7ca16e84fa432d409807a9ead Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 29 Jan 2026 19:30:20 +0100 Subject: [PATCH 3/4] Add since annotation about change --- src/wp-includes/html-api/class-wp-html-processor.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index 6f72650cf72cc..3d1538320f455 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -148,6 +148,7 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { * so this class constant from the Tag Processor is overwritten. * * @since 6.4.0 + * @since 7.0.0 Increased from 100 to 1,000 * * @var int */ From 4954c52f58df26ee5caff116c814553d1bebb8a4 Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Thu, 29 Jan 2026 19:33:31 +0100 Subject: [PATCH 4/4] =?UTF-8?q?10k=20=F0=9F=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/wp-includes/html-api/class-wp-html-processor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/html-api/class-wp-html-processor.php b/src/wp-includes/html-api/class-wp-html-processor.php index 3d1538320f455..aff627059426c 100644 --- a/src/wp-includes/html-api/class-wp-html-processor.php +++ b/src/wp-includes/html-api/class-wp-html-processor.php @@ -148,11 +148,11 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor { * so this class constant from the Tag Processor is overwritten. * * @since 6.4.0 - * @since 7.0.0 Increased from 100 to 1,000 + * @since 7.0.0 Increased from 100 to 10,000 * * @var int */ - const MAX_BOOKMARKS = 1_000; + const MAX_BOOKMARKS = 10_000; /** * Holds the working state of the parser, including the stack of