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.