Make WordPress Core

Ticket #24974: 24974.patch

File 24974.patch, 664 bytes (added by jdgrimes, 12 years ago)

Removes three unnecessary instances of assignment by reference, two of which are deprecated.

  • includes/testcase.php

     
    129129
    130130                $this->flush_cache();
    131131                unset($GLOBALS['wp_query'], $GLOBALS['wp_the_query']);
    132                 $GLOBALS['wp_the_query'] =& new WP_Query();
    133                 $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
    134                 $GLOBALS['wp'] =& new WP();
     132                $GLOBALS['wp_the_query'] = new WP_Query();
     133                $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
     134                $GLOBALS['wp'] = new WP();
    135135
    136136                // clean out globals to stop them polluting wp and wp_query
    137137                foreach ($GLOBALS['wp']->public_query_vars as $v) {