diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-07-20 11:02:38 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2006-07-20 11:02:38 +0000 |
commit | e334b8d1f3bd837ff86984f396442956b452c6f3 (patch) | |
tree | b5be84b7c1c9f6a393708c508ce3dd24f1b75411 /wp-settings.php | |
parent | 0afb9ed1b750e6adef8b5b6983464cd254e9bae8 (diff) | |
download | wordpress-mu-e334b8d1f3bd837ff86984f396442956b452c6f3.tar.gz wordpress-mu-e334b8d1f3bd837ff86984f396442956b452c6f3.tar.xz wordpress-mu-e334b8d1f3bd837ff86984f396442956b452c6f3.zip |
Use wp_die()
Removed $HTTP_USER_AGENT (#93)
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@696 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-settings.php')
-rw-r--r-- | wp-settings.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wp-settings.php b/wp-settings.php index 9e05a1b..6015cc3 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -8,7 +8,7 @@ function unregister_GLOBALS() { return; if ( isset($_REQUEST['GLOBALS']) ) - die('GLOBALS overwrite attempt detected'); + wp_die('GLOBALS overwrite attempt detected'); // Variables that shouldn't be unset $noUnset = array('GLOBALS', '_GET', '_POST', '_COOKIE', '_REQUEST', '_SERVER', '_ENV', '_FILES', 'table_prefix'); @@ -21,7 +21,6 @@ function unregister_GLOBALS() { unregister_GLOBALS(); -$HTTP_USER_AGENT = $_SERVER[ 'HTTP_USER_AGENT' ]; unset( $wp_filter, $cache_userdata, $cache_lastcommentmodified, $cache_lastpostdate, $cache_settings, $category_cache, $cache_categories ); if ( ! isset($blog_id) ) |