Changeset 16543
- Timestamp:
- 11/23/2010 12:47:45 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r16542 r16543 2680 2680 $this->queried_object = & get_page( $page_for_posts ); 2681 2681 $this->queried_object_id = (int) $this->queried_object->ID; 2682 } elseif ( $this->is_single && !is_null($this->post) ) { 2683 $this->queried_object = $this->post; 2684 $this->queried_object_id = (int) $this->post->ID; 2685 } elseif ( $this->is_page && !is_null($this->post) ) { 2682 } elseif ( $this->is_singular && !is_null($this->post) ) { 2686 2683 $this->queried_object = $this->post; 2687 2684 $this->queried_object_id = (int) $this->post->ID; 2688 2685 } elseif ( $this->is_author ) { 2689 $author_id = (int) $this->get('author'); 2690 $author = get_userdata($author_id); 2691 $this->queried_object = $author; 2692 $this->queried_object_id = $author_id; 2693 } 2694 2686 $this->queried_object_id = (int) $this->get('author'); 2687 $this->queried_object = get_userdata( $this->queried_object_id ); 2688 } 2689 debug($this->is_attachment, $this->is_page, $this->is_single); 2695 2690 return $this->queried_object; 2696 2691 }
Note: See TracChangeset
for help on using the changeset viewer.