From f05150a50f062e5bfddc0cd54defd44a02cfd713 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 27 Feb 2008 21:30:59 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index fccc82836c..070f9c4161 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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; } }