mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53749 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+3
-3
@@ -165,7 +165,7 @@
|
||||
|
||||
<!-- Whitelist the WP DB Class and related tests for usage of direct database access functions. -->
|
||||
<rule ref="WordPress.DB.RestrictedFunctions">
|
||||
<exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
|
||||
<exclude-pattern>/tests/phpunit/tests/db/charset\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
@@ -325,10 +325,10 @@
|
||||
</rule>
|
||||
<rule ref="PEAR.NamingConventions.ValidClassName.StartWithCapital">
|
||||
<exclude-pattern>/src/wp-admin/includes/class-wp-list-table-compat\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/class-wp-dependency\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/class-wp-editor\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/class-wp-xmlrpc-server\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/wp-db\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/class-wp-dependency\.php</exclude-pattern>
|
||||
<exclude-pattern>/src/wp-includes/class-wpdb\.php</exclude-pattern>
|
||||
</rule>
|
||||
|
||||
<!-- Exclude some incorrectly named files that won't be renamed. -->
|
||||
|
||||
Reference in New Issue
Block a user