mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
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
This commit is contained in:
parent
6482610f9a
commit
78e63786d0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user