Changeset 53749
- Timestamp:
- 07/21/2022 03:58:51 PM (2 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpcs.xml.dist
r52978 r53749 166 166 <!-- Whitelist the WP DB Class and related tests for usage of direct database access functions. --> 167 167 <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> 169 169 <exclude-pattern>/tests/phpunit/tests/db/charset\.php</exclude-pattern> 170 170 </rule> … … 326 326 <rule ref="PEAR.NamingConventions.ValidClassName.StartWithCapital"> 327 327 <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> 328 329 <exclude-pattern>/src/wp-includes/class-wp-editor\.php</exclude-pattern> 329 330 <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> 332 332 </rule> 333 333 -
trunk/src/wp-admin/install.php
r53450 r53749 43 43 44 44 /** Load wpdb */ 45 require_once ABSPATH . WPINC . '/ wp-db.php';45 require_once ABSPATH . WPINC . '/class-wpdb.php'; 46 46 47 47 nocache_headers(); -
trunk/src/wp-includes/class-wpdb.php
r53748 r53749 1 1 <?php 2 2 /** 3 * WordPress database access abstraction class 3 * WordPress database access abstraction class. 4 4 * 5 5 * Original code from {@link http://php.justinvincent.com Justin Vincent (justin@visunet.ie)} -
trunk/src/wp-includes/load.php
r53458 r53749 545 545 global $wpdb; 546 546 547 require_once ABSPATH . WPINC . '/wp-db.php'; 547 require_once ABSPATH . WPINC . '/class-wpdb.php'; 548 548 549 if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) { 549 550 require_once WP_CONTENT_DIR . '/db.php'; -
trunk/tests/phpunit/includes/install.php
r52359 r53749 41 41 42 42 require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 43 require_once ABSPATH . '/wp-includes/ wp-db.php';43 require_once ABSPATH . '/wp-includes/class-wpdb.php'; 44 44 45 45 // Override the PHPMailer.
Note: See TracChangeset
for help on using the changeset viewer.