From df1095f5608b1887b72e55f4ebbae40f6e884a9c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 26 Jan 2010 18:20:27 +0000 Subject: [PATCH] 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 --- wp-settings.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-settings.php b/wp-settings.php index 7a5519ad6a..e34bfea7e2 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -161,6 +161,7 @@ if ( is_multisite() ) { require_once( $file ); die(); } + unset($file); ms_network_cookies(); } @@ -248,6 +249,7 @@ $locale = get_locale(); $locale_file = WP_LANG_DIR . "/$locale.php"; if ( is_readable( $locale_file ) ) require_once( $locale_file ); +unset($locale_file); // Pull in locale data after loading text domain. require_once( ABSPATH . WPINC . '/locale.php' );