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

git-svn-id: https://develop.svn.wordpress.org/trunk@7070 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-02-27 21:30:59 +00:00
parent e93de99379
commit f05150a50f
1 changed files with 1 additions and 1 deletions

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