Make WordPress Core


Ignore:
Timestamp:
10/18/2011 08:20:59 PM (13 years ago)
Author:
nacin
Message:

new does not require by reference.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r18846 r18995  
    9090function &query_posts($query) {
    9191    unset($GLOBALS['wp_query']);
    92     $GLOBALS['wp_query'] =& new WP_Query();
     92    $GLOBALS['wp_query'] = new WP_Query();
    9393    return $GLOBALS['wp_query']->query($query);
    9494}
     
    106106function wp_reset_query() {
    107107    unset($GLOBALS['wp_query']);
    108     $GLOBALS['wp_query'] =& $GLOBALS['wp_the_query'];
     108    $GLOBALS['wp_query'] = $GLOBALS['wp_the_query'];
    109109    wp_reset_postdata();
    110110}
Note: See TracChangeset for help on using the changeset viewer.