Changeset 34690 for trunk/src/wp-includes/query.php
- Timestamp:
- 09/29/2015 09:41:14 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r34685 r34690 3581 3581 if ( !empty($this->posts) && ($this->is_single || $this->is_page) ) { 3582 3582 $status = get_post_status($this->posts[0]); 3583 if ( 'attachment' === $this->posts[0]->post_type && 0 === (int) $this->posts[0]->post_parent ) { 3584 $this->is_page = false; 3585 $this->is_single = true; 3586 $this->is_attachment = true; 3587 } 3583 3588 $post_status_obj = get_post_status_object($status); 3584 3589 //$type = get_post_type($this->posts[0]);
Note: See TracChangeset
for help on using the changeset viewer.