From 8cd3628f37ea02bc352a551eb8bbeff44b2597c9 Mon Sep 17 00:00:00 2001 From: jonsurrell Date: Fri, 27 Feb 2026 15:18:46 +0000 Subject: [PATCH] HTML API: Increase HTML Processor bookmark limit to 10,000. The limit was overly conservative and bookmark exhaustion may occur on realistic documents. The increased limit allows documents with much greater depth to be safely processed. The limit is increased from 100 to 10,000. Developed in https://github.com/WordPress/wordpress-develop/pull/10820. Follow-up to [61755]. Props jonsurrell, dmsnell, westonruter. See #64394. Built from https://develop.svn.wordpress.org/trunk@61756 git-svn-id: http://core.svn.wordpress.org/trunk@61062 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/html-api/class-wp-html-processor.php | 3 ++- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/wp-includes/html-api/class-wp-html-processor.php b/wp-includes/html-api/class-wp-html-processor.php index f9a449c3c6..56e6ba6180 100644 --- a/wp-includes/html-api/class-wp-html-processor.php +++ b/wp-includes/html-api/class-wp-html-processor.php @@ -149,10 +149,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 10,000 * * @var int */ - const MAX_BOOKMARKS = 100; + const MAX_BOOKMARKS = 10_000; /** * Holds the working state of the parser, including the stack of diff --git a/wp-includes/version.php b/wp-includes/version.php index a315c53c95..3795c5c11c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '7.0-beta2-61755'; +$wp_version = '7.0-beta2-61756'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.