Changeset 60939
- Timestamp:
- 10/15/2025 09:51:35 PM (2 months ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
-
phpcs.xml.dist (modified) (2 diffs)
-
src/wp-includes/blocks.php (modified) (1 diff)
-
src/wp-includes/class-wp-block-processor.php (added)
-
src/wp-settings.php (modified) (1 diff)
-
tests/phpunit/tests/block-processor (added)
-
tests/phpunit/tests/block-processor/wpBlockProcessor-BlockProcessing.php (added)
-
tests/phpunit/tests/block-processor/wpBlockProcessor.php (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r60768 r60939 230 230 SELECTIVE EXCLUSIONS 231 231 Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs. 232 232 233 233 These exclusions are listed ordered by alphabetic sniff name. 234 234 ############################################################################# … … 267 267 <!-- Goto is an effective way to handle errors in decoders which expect valid bytes 268 268 without impacting the fast path while avoiding bloating the code with redundant 269 and risky handling code. Exclude forbidding goto in UTF-8 fallbackcode. -->269 and risky handling code. Exclude forbidding goto in parser code. --> 270 270 <exclude-pattern>/wp-includes/compat-utf8\.php</exclude-pattern> 271 <exclude-pattern>/wp-includes/class-wp-block-processor\.php</exclude-pattern> 271 272 </rule> 272 273 -
trunk/src/wp-includes/blocks.php
r60809 r60939 2377 2377 * Parses blocks out of a content string. 2378 2378 * 2379 * Given an HTML document, this function fully-parses block content, producing 2380 * a tree of blocks and their contents, as well as top-level non-block content, 2381 * which will appear as a block with no `blockName`. 2382 * 2383 * This function can be memory heavy for certain documents, particularly those 2384 * with deeply-nested blocks or blocks with extensive attribute values. Further, 2385 * this function must parse an entire document in one atomic operation. 2386 * 2387 * If the entire parsed document is not necessary, consider using {@see WP_Block_Processor} 2388 * instead, as it provides a streaming and low-overhead interface for finding blocks. 2389 * 2379 2390 * @since 5.0.0 2380 2391 * -
trunk/src/wp-settings.php
r60793 r60939 269 269 require ABSPATH . WPINC . '/html-api/class-wp-html-processor-state.php'; 270 270 require ABSPATH . WPINC . '/html-api/class-wp-html-processor.php'; 271 require ABSPATH . WPINC . '/class-wp-block-processor.php'; 271 272 require ABSPATH . WPINC . '/class-wp-http.php'; 272 273 require ABSPATH . WPINC . '/class-wp-http-streams.php';
Note: See TracChangeset
for help on using the changeset viewer.