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:
parent
112eae8b12
commit
18892308b0
@ -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
Block a user