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:
ryan 2008-02-27 21:30:59 +00:00
parent d236d4f3e1
commit 0b43776d5f

View File

@ -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;
}
}