From 799a2c59ed8e567434f2d8622a66e7e34d2d34a2 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 16 Apr 2009 17:37:58 +0000 Subject: [PATCH] Add page classes to page attachments. Props minusfive. fixes #9472 git-svn-id: https://develop.svn.wordpress.org/trunk@10947 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 f3a789f403..a69f2ca060 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 .= '