From 0b43776d5f41224ae06fb4858117e8b4e0411d63 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@7070 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 fccc82836..070f9c416 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; } }