Make WordPress Core

Changeset 56048 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
06/27/2023 12:43:42 AM (18 months ago)
Author:
peterwilsoncc
Message:

Editor: Update block-serialization-default-parser package for WP 6.3 Beta 1.

Update the @wordpress/block-serialization-default-parser to 4.35.1 for WordPress 6.3 Beta 1. These changes split the following classes in to their own files in order to match the WordPress PHP coding standards:

  • WP_Block_Parser_Block
  • WP_Block_Parser_Frame
  • WP_Block_Parser

These classes were previously all included in the src/wp-includes/class-wp-block-parser.php file. In order to maintain backward compatibly for developers requiring the file directly, the relocated classes are replaced with require_once calls in the original file.

In order to retain the commit history of the new files, they have been created using the svn copy command.

Props aristath, rajanpanchal2028, jrf, SergeyBiryukov, costdev, manfcarlo, spacedmonkey, mukesh27, isabel_brison, dd32.
Fixes #57832.
See #58623.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r56033 r56048  
    119119    <exclude-pattern>/src/wp-includes/class-simplepie\.php</exclude-pattern>
    120120    <exclude-pattern>/src/wp-includes/class-snoopy\.php</exclude-pattern>
    121     <exclude-pattern>/src/wp-includes/class-wp-block-parser\.php</exclude-pattern>
    122121    <exclude-pattern>/src/wp-includes/deprecated\.php</exclude-pattern>
    123122    <exclude-pattern>/src/wp-includes/ms-deprecated\.php</exclude-pattern>
     
    186185        <exclude-pattern>/tests/phpunit/tests/admin/includesSchema\.php</exclude-pattern>
    187186        <exclude-pattern>/tests/phpunit/tests/multisite/site\.php</exclude-pattern>
     187    </rule>
     188
     189    <!-- Allow non-snake-case vars & properties for block-related classes. -->
     190    <rule ref="WordPress.NamingConventions.ValidVariableName.VariableNotSnakeCase">
     191        <exclude-pattern>/src/wp-includes/class-wp-block-parser\.php</exclude-pattern>
     192        <exclude-pattern>/src/wp-includes/class-wp-block-parser-block\.php</exclude-pattern>
     193    </rule>
     194    <rule ref="WordPress.NamingConventions.ValidVariableName.PropertyNotSnakeCase">
     195        <exclude-pattern>/src/wp-includes/class-wp-block-parser-block\.php</exclude-pattern>
     196    </rule>
     197    <rule ref="WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase">
     198        <exclude-pattern>/src/wp-includes/class-wp-block-parser-block\.php</exclude-pattern>
    188199    </rule>
    189200
Note: See TracChangeset for help on using the changeset viewer.