From 0ed6972911d2e3a9c3306ba2bbc9396d53aebf6c Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Apr 2009 18:22:27 +0000 Subject: [PATCH] Add page class to get_boddy_class(). Props nathanrice. fixes #9514 git-svn-id: http://svn.automattic.com/wordpress/trunk@10950 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index a69f2ca06..6491217cd 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -410,6 +410,8 @@ function get_body_class( $class = '' ) { $classes[] = 'tag-' . $tags->slug; } } elseif ( is_page() ) { + $classes[] = 'page'; + $wp_query->post = $wp_query->posts[0]; setup_postdata($wp_query->post);