mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user