Add no-customize-support to the body classes when the toolbar is showing. Allows for 'Customize' to be hidden when JS is disabled. props obenland, DrewAPicture. fixes #20896.
git-svn-id: https://develop.svn.wordpress.org/trunk@22107 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cce2ddd29c
commit
1d1c3e27ce
@ -500,8 +500,10 @@ function get_body_class( $class = '' ) {
|
||||
if ( is_user_logged_in() )
|
||||
$classes[] = 'logged-in';
|
||||
|
||||
if ( is_admin_bar_showing() )
|
||||
if ( is_admin_bar_showing() ) {
|
||||
$classes[] = 'admin-bar';
|
||||
$classes[] = 'no-customize-support';
|
||||
}
|
||||
|
||||
if ( get_theme_mod( 'background_color' ) || get_background_image() )
|
||||
$classes[] = 'custom-background';
|
||||
|
Loading…
Reference in New Issue
Block a user