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:
parent
e93de99379
commit
f05150a50f
@ -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…
x
Reference in New Issue
Block a user