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
This commit is contained in:
parent
96c0d6faa1
commit
0ed6972911
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue