mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +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:
@@ -544,7 +544,8 @@ function wp_set_lang_dir() {
|
||||
function require_wp_db() {
|
||||
global $wpdb;
|
||||
|
||||
require_once ABSPATH . WPINC . '/wp-db.php';
|
||||
require_once ABSPATH . WPINC . '/class-wpdb.php';
|
||||
|
||||
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
|
||||
require_once WP_CONTENT_DIR . '/db.php';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user