From ab49d00bc47cbef7b13055af28aa89bed9fa4202 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Apr 2009 17:37:58 +0000 Subject: [PATCH] Add page classes to page attachments. Props minusfive. fixes #9472 git-svn-id: http://svn.automattic.com/wordpress/trunk@10947 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index f3a789f40..a69f2ca06 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -412,7 +412,7 @@ function get_body_class( $class = '' ) { } elseif ( is_page() ) { $wp_query->post = $wp_query->posts[0]; setup_postdata($wp_query->post); - + $pageID = $wp_query->post->ID; $page_children = wp_list_pages("child_of=$pageID&echo=0"); @@ -750,7 +750,7 @@ function wp_list_pages($args = '') { $output .= '