For page attachmentes, set both is_attachment and is_page to true so that templates cascade correctly.
git-svn-id: http://svn.automattic.com/wordpress/trunk@7070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d236d4f3e1
commit
0b43776d5f
|
@ -894,7 +894,7 @@ class WP_Query {
|
|||
$reqpage_obj = get_page($reqpage);
|
||||
if ( 'attachment' == $reqpage_obj->post_type ) {
|
||||
$this->is_attachment = true;
|
||||
$this->is_page = false;
|
||||
$this->is_page = true;
|
||||
$q['attachment_id'] = $reqpage;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue