Database: Explicitly globalize `$wpdb` in `wp-settings.php` in case WordPress isn't loaded in global scope.
See [18993] for `$table_prefix`. Props danielbachhuber. Fixes #37123. git-svn-id: https://develop.svn.wordpress.org/trunk@37864 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8a7a62bb11
commit
4a158e621d
|
@ -99,6 +99,7 @@ require( ABSPATH . WPINC . '/class-wp-error.php' );
|
||||||
require( ABSPATH . WPINC . '/pomo/mo.php' );
|
require( ABSPATH . WPINC . '/pomo/mo.php' );
|
||||||
|
|
||||||
// Include the wpdb class and, if present, a db.php database drop-in.
|
// Include the wpdb class and, if present, a db.php database drop-in.
|
||||||
|
global $wpdb;
|
||||||
require_wp_db();
|
require_wp_db();
|
||||||
|
|
||||||
// Set the database table prefix and the format specifiers for database table columns.
|
// Set the database table prefix and the format specifiers for database table columns.
|
||||||
|
|
Loading…
Reference in New Issue