Add admin-bar class to body_class() if the admin bar is showing. fixes #15455

git-svn-id: https://develop.svn.wordpress.org/trunk@16432 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2010-11-17 17:21:45 +00:00
parent 55e0256967
commit ae422f43ab
1 changed files with 3 additions and 0 deletions

View File

@ -498,6 +498,9 @@ function get_body_class( $class = '' ) {
if ( is_user_logged_in() )
$classes[] = 'logged-in';
if ( is_admin_bar_showing() )
$classes[] = 'admin-bar';
$page = $wp_query->get( 'page' );
if ( !$page || $page < 2)