Skip to content
Browse files

Assigning the return value of new by reference is deprecated. Props h…

…akre. see #16767

git-svn-id: http://svn.automattic.com/wordpress/trunk@17573 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent 975a6a8 commit 7baf775b85080135733bf9fb04e39d569e40c038 ryan committed Mar 30, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 wp-settings.php
View
10 wp-settings.php
@@ -216,7 +216,7 @@
* @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 @@
* @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 @@
* @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' ) )

0 comments on commit 7baf775

Please sign in to comment.
Something went wrong with that request. Please try again.