mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-14 22:56:19 +01:00
Do sanity checks for register_globals and magic quotes in setup-config.php. see #13839 for the 3.3 branch.
git-svn-id: http://svn.automattic.com/wordpress/branches/3.3@20484 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
027972ec8a
commit
cd4f6634ad
@ -44,10 +44,13 @@ define('WP_DEBUG', false);
|
||||
require_once(ABSPATH . WPINC . '/load.php');
|
||||
require_once(ABSPATH . WPINC . '/version.php');
|
||||
wp_check_php_mysql_versions();
|
||||
wp_unregister_GLOBALS();
|
||||
|
||||
require_once(ABSPATH . WPINC . '/compat.php');
|
||||
require_once(ABSPATH . WPINC . '/functions.php');
|
||||
require_once(ABSPATH . WPINC . '/class-wp-error.php');
|
||||
require_once(ABSPATH . WPINC . '/formatting.php');
|
||||
wp_magic_quotes();
|
||||
|
||||
if (!file_exists(ABSPATH . 'wp-config-sample.php'))
|
||||
wp_die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');
|
||||
|
Loading…
Reference in New Issue
Block a user