From 1d1c3e27ce7ab4ffba8f2c1c6090a25cef1875e4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 3 Oct 2012 20:54:54 +0000 Subject: [PATCH] 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 --- wp-includes/post-template.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 00613118a9..185af0eed0 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -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';