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

git-svn-id: http://svn.automattic.com/wordpress/trunk@4203 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-09-21 21:00:22 +00:00
parent 7a032342b3
commit eb4e2a2216

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 );