From 78e63786d0176b16f50b50398f783ad3d5d0a46b Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 17 Nov 2010 17:21:45 +0000 Subject: [PATCH] Add admin-bar class to body_class() if the admin bar is showing. fixes #15455 git-svn-id: http://svn.automattic.com/wordpress/trunk@16432 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index ae5708e7b..e704fb4a1 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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)