Add page class to get_boddy_class(). Props nathanrice. fixes #9514

git-svn-id: https://develop.svn.wordpress.org/trunk@10950 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-16 18:22:27 +00:00
parent 112eae8b12
commit 18892308b0
1 changed files with 2 additions and 0 deletions

View File

@ -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);