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: http://core.svn.wordpress.org/trunk@22107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8451f7e987
commit
830e30031a
|
@ -500,8 +500,10 @@ function get_body_class( $class = '' ) {
|
||||||
if ( is_user_logged_in() )
|
if ( is_user_logged_in() )
|
||||||
$classes[] = 'logged-in';
|
$classes[] = 'logged-in';
|
||||||
|
|
||||||
if ( is_admin_bar_showing() )
|
if ( is_admin_bar_showing() ) {
|
||||||
$classes[] = 'admin-bar';
|
$classes[] = 'admin-bar';
|
||||||
|
$classes[] = 'no-customize-support';
|
||||||
|
}
|
||||||
|
|
||||||
if ( get_theme_mod( 'background_color' ) || get_background_image() )
|
if ( get_theme_mod( 'background_color' ) || get_background_image() )
|
||||||
$classes[] = 'custom-background';
|
$classes[] = 'custom-background';
|
||||||
|
|
Loading…
Reference in New Issue