Make WordPress Core

Changeset 7070


Ignore:
Timestamp:
02/27/2008 09:30:59 PM (18 years ago)
Author:
ryan
Message:

For page attachmentes, set both is_attachment and is_page to true so that templates cascade correctly.

File:
1 edited

Legend:

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

    r6986 r7070  
    895895                                if ( 'attachment' == $reqpage_obj->post_type ) {
    896896                                        $this->is_attachment = true;
    897                                         $this->is_page = false;
     897                                        $this->is_page = true;
    898898                                        $q['attachment_id'] = $reqpage;
    899899                                }
Note: See TracChangeset for help on using the changeset viewer.