Skip to content

Commit 78d7382

Browse files
committed
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 #10820. Follow-up to [61755]. Props jonsurrell, dmsnell, westonruter. See #64394. git-svn-id: https://develop.svn.wordpress.org/trunk@61756 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 7a58dc0 commit 78d7382

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,11 @@ class WP_HTML_Processor extends WP_HTML_Tag_Processor {
149149
* so this class constant from the Tag Processor is overwritten.
150150
*
151151
* @since 6.4.0
152+
* @since 7.0.0 Increased from 100 to 10,000
152153
*
153154
* @var int
154155
*/
155-
const MAX_BOOKMARKS = 100;
156+
const MAX_BOOKMARKS = 10_000;
156157

157158
/**
158159
* Holds the working state of the parser, including the stack of

0 commit comments

Comments
 (0)