unset temp vars so they don't pollute the global namespace.
git-svn-id: https://develop.svn.wordpress.org/trunk@12847 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
708c01dd15
commit
df1095f560
@ -161,6 +161,7 @@ if ( is_multisite() ) {
|
|||||||
require_once( $file );
|
require_once( $file );
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
unset($file);
|
||||||
ms_network_cookies();
|
ms_network_cookies();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,6 +249,7 @@ $locale = get_locale();
|
|||||||
$locale_file = WP_LANG_DIR . "/$locale.php";
|
$locale_file = WP_LANG_DIR . "/$locale.php";
|
||||||
if ( is_readable( $locale_file ) )
|
if ( is_readable( $locale_file ) )
|
||||||
require_once( $locale_file );
|
require_once( $locale_file );
|
||||||
|
unset($locale_file);
|
||||||
|
|
||||||
// Pull in locale data after loading text domain.
|
// Pull in locale data after loading text domain.
|
||||||
require_once( ABSPATH . WPINC . '/locale.php' );
|
require_once( ABSPATH . WPINC . '/locale.php' );
|
||||||
|
Loading…
Reference in New Issue
Block a user