mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 18:24:31 +00:00
Explicitly globalize $table_prefix in wp-settings.php in case WordPress isn't loaded in global scope. Use $_SERVER['PHP_SELF'], not $PHP_SELF. We need to keep $PHP_SELF for backwards compatibility reasons (many, many plugins rely on it). props mrtorrent, fixes #17749.
git-svn-id: https://develop.svn.wordpress.org/trunk@18993 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -75,6 +75,7 @@ require( ABSPATH . WPINC . '/plugin.php' );
|
||||
require_wp_db();
|
||||
|
||||
// Set the database table prefix and the format specifiers for database table columns.
|
||||
$GLOBALS['table_prefix'] = $table_prefix;
|
||||
wp_set_wpdb_vars();
|
||||
|
||||
// Start the WordPress object cache, or an external object cache if the drop-in is present.
|
||||
|
||||
Reference in New Issue
Block a user