From 74ace0517cb4046a1a3fef4d3689c5da63ae8633 Mon Sep 17 00:00:00 2001 From: Nikolay Bachiyski Date: Wed, 22 Jan 2014 14:48:11 +0000 Subject: [PATCH] Excplitcly globalized call to $wp later in wp-settings.php Props xknown, fixes #26867. Built from https://develop.svn.wordpress.org/trunk@26997 git-svn-id: http://core.svn.wordpress.org/trunk@26874 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-settings.php b/wp-settings.php index 7898fb59b9..236615bf05 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -331,7 +331,7 @@ if ( ! defined( 'WP_INSTALLING' ) || 'wp-activate.php' === $pagenow ) { do_action( 'after_setup_theme' ); // Set up current user. -$wp->init(); +$GLOBALS['wp']->init(); /** * Fires after WordPress has finished loading but before any headers are sent.