Changeset 7070

Show
Ignore:
Timestamp:
02/27/08 21:30:59 (4 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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                }