Make WordPress Core

Changeset 60939 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
10/15/2025 09:51:35 PM (13 months ago)
Author:
dmsnell
Message:

Blocks: Introduce WP_Block_Processor for efficiently parsing blocks.

The Block Processor follows the HTML API in providing a streaming, near-zero-overhead, lazy, re-entrant parser for traversing block structure. This class provides an alternate interface to parse_blocks() which is more amenable to a number of common server-side operations on posts, especially those needing to operate on only a part of a full post.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/9105
Discussed in https://core.trac.wordpress.org/ticket/61401

Props dmsnell, gziolo, jonsurrell, soean, tjnowell, westonruter.
Fixes #61401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r60768 r60939  
    230230        SELECTIVE EXCLUSIONS
    231231        Exclude specific files for specific sniffs and/or exclude sub-groups in sniffs.
    232        
     232
    233233        These exclusions are listed ordered by alphabetic sniff name.
    234234        #############################################################################
    … …  
    267267                <!-- Goto is an effective way to handle errors in decoders which expect valid bytes
    268268                     without impacting the fast path while avoiding bloating the code with redundant
    269                      and risky handling code. Exclude forbidding goto in UTF-8 fallback code. -->
     269                     and risky handling code. Exclude forbidding goto in parser code. -->
    270270                <exclude-pattern>/wp-includes/compat-utf8\.php</exclude-pattern>
     271                <exclude-pattern>/wp-includes/class-wp-block-processor\.php</exclude-pattern>
    271272        </rule>
    272273
Note: See TracChangeset for help on using the changeset viewer.