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. Built from https://develop.svn.wordpress.org/trunk@53749 git-svn-id: http://core.svn.wordpress.org/trunk@53308 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0ccc01839a
commit
8484c7babb
|
@ -42,7 +42,7 @@ require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
||||||
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
require_once ABSPATH . 'wp-admin/includes/translation-install.php';
|
||||||
|
|
||||||
/** Load wpdb */
|
/** Load wpdb */
|
||||||
require_once ABSPATH . WPINC . '/wp-db.php';
|
require_once ABSPATH . WPINC . '/class-wpdb.php';
|
||||||
|
|
||||||
nocache_headers();
|
nocache_headers();
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -544,7 +544,8 @@ function wp_set_lang_dir() {
|
||||||
function require_wp_db() {
|
function require_wp_db() {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
|
||||||
require_once ABSPATH . WPINC . '/wp-db.php';
|
require_once ABSPATH . WPINC . '/class-wpdb.php';
|
||||||
|
|
||||||
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
|
if ( file_exists( WP_CONTENT_DIR . '/db.php' ) ) {
|
||||||
require_once WP_CONTENT_DIR . '/db.php';
|
require_once WP_CONTENT_DIR . '/db.php';
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '6.1-alpha-53748';
|
$wp_version = '6.1-alpha-53749';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue