Prefix unregister_GLOBALS to avoid name collisions. Props westi. fixes #3151

git-svn-id: https://develop.svn.wordpress.org/trunk@4203 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2006-09-21 21:00:22 +00:00
parent 7e99c9b9d7
commit 96bcf0b24d

View File

@@ -1,6 +1,6 @@
<?php
// Turn register globals off
function unregister_GLOBALS() {
function wp_unregister_GLOBALS() {
if ( !ini_get('register_globals') )
return;
@@ -16,7 +16,7 @@ function unregister_GLOBALS() {
unset($GLOBALS[$k]);
}
unregister_GLOBALS();
wp_unregister_GLOBALS();
unset( $wp_filter, $cache_userdata, $cache_lastcommentmodified, $cache_lastpostdate, $cache_settings, $category_cache, $cache_categories );