Changeset 2478 for trunk/wp-includes/classes.php
- Timestamp:
- 03/27/2005 08:45:01 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r2475 r2478 218 218 } 219 219 220 function get_posts() {220 function &get_posts() { 221 221 global $wpdb, $pagenow, $request, $user_ID; 222 222 … … 596 596 } 597 597 598 function query($query) {598 function &query($query) { 599 599 $this->parse_query($query); 600 600 return $this->get_posts(); … … 610 610 611 611 if ($this->is_category) { 612 global $cache_categories; 613 if (isset($cache_categories[$this->get('cat')])) { 614 $this->queried_object = $cache_categories[$this->get('cat')]; 615 $this->queried_object_id = $this->get('cat'); 616 } 612 $category = &get_category($this->get('cat')); 613 $this->queried_object = &$category; 614 $this->queried_object_id = $this->get('cat'); 617 615 } else if ($this->is_single) { 618 616 $this->queried_object = $this->post;
Note: See TracChangeset
for help on using the changeset viewer.