Make WordPress Core

Changeset 53749 for trunk/phpcs.xml.dist


Ignore:
Timestamp:
07/21/2022 03:58:51 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Move wp-includes/wp-db.php to wp-includes/class-wpdb.php.

This renames the file containing the wpdb class to conform to the coding standards.

This commit also includes:

  • A new wp-db.php that loads the new file, for anyone that may have been including the file directly.
  • Replacing references to the old filename with the new filename.

Fixes #56268. See #55647.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpcs.xml.dist

    r52978 r53749  
    166166    <!-- Whitelist the WP DB Class and related tests for usage of direct database access functions. -->
    167167    <rule ref="WordPress.DB.RestrictedFunctions">
    168         <exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
     168        <exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
    169169        <exclude-pattern>/tests/phpunit/tests/db/charset\.php</exclude-pattern>
    170170    </rule>
     
    326326    <rule ref="PEAR.NamingConventions.ValidClassName.StartWithCapital">
    327327        <exclude-pattern>/src/wp-admin/includes/class-wp-list-table-compat\.php</exclude-pattern>
     328        <exclude-pattern>/src/wp-includes/class-wp-dependency\.php</exclude-pattern>
    328329        <exclude-pattern>/src/wp-includes/class-wp-editor\.php</exclude-pattern>
    329330        <exclude-pattern>/src/wp-includes/class-wp-xmlrpc-server\.php</exclude-pattern>
    330         <exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
    331         <exclude-pattern>/src/wp-includes/class-wp-dependency\.php</exclude-pattern>
     331        <exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
    332332    </rule>
    333333
Note: See TracChangeset for help on using the changeset viewer.