Changeset 18995 for trunk/wp-includes/query.php
- Timestamp:
- 10/18/2011 08:20:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r18846 r18995 90 90 function &query_posts($query) { 91 91 unset($GLOBALS['wp_query']); 92 $GLOBALS['wp_query'] = &new WP_Query();92 $GLOBALS['wp_query'] = new WP_Query(); 93 93 return $GLOBALS['wp_query']->query($query); 94 94 } … … 106 106 function wp_reset_query() { 107 107 unset($GLOBALS['wp_query']); 108 $GLOBALS['wp_query'] = &$GLOBALS['wp_the_query'];108 $GLOBALS['wp_query'] = $GLOBALS['wp_the_query']; 109 109 wp_reset_postdata(); 110 110 }
Note: See TracChangeset
for help on using the changeset viewer.