From 48a439ac5bdaf25ad16ed2221a369846a6033df7 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 30 Mar 2011 20:50:05 +0000 Subject: [PATCH] Assigning the return value of new by reference is deprecated. Props hakre. see #16767 git-svn-id: https://develop.svn.wordpress.org/trunk@17573 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-settings.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-settings.php b/wp-settings.php index cc5a412a49..5cb2838481 100644 --- a/wp-settings.php +++ b/wp-settings.php @@ -216,7 +216,7 @@ do_action( 'sanitize_comment_cookies' ); * @global object $wp_the_query * @since 2.0.0 */ -$wp_the_query =& new WP_Query(); +$wp_the_query = new WP_Query(); /** * Holds the reference to @see $wp_the_query @@ -231,21 +231,21 @@ $wp_query =& $wp_the_query; * @global object $wp_rewrite * @since 1.5.0 */ -$wp_rewrite =& new WP_Rewrite(); +$wp_rewrite = new WP_Rewrite(); /** * WordPress Object * @global object $wp * @since 2.0.0 */ -$wp =& new WP(); +$wp = new WP(); /** * WordPress Widget Factory Object * @global object $wp_widget_factory * @since 2.8.0 */ -$wp_widget_factory =& new WP_Widget_Factory(); +$wp_widget_factory = new WP_Widget_Factory(); do_action( 'setup_theme' ); @@ -270,7 +270,7 @@ require( ABSPATH . WPINC . '/locale.php' ); * @global object $wp_locale * @since 2.1.0 */ -$wp_locale =& new WP_Locale(); +$wp_locale = new WP_Locale(); // Load the functions for the active theme, for both parent and child theme if applicable. if ( TEMPLATEPATH !== STYLESHEETPATH && file_exists( STYLESHEETPATH . '/functions.php' ) )