Customize: Restore body class removed in [36837] for when custom logo is present.

The class name is `wp-custom-logo` and it will be toggled by JS in the Customizer preview when the custom logo is added or removed.

See #33755.
Fixes #35945.

Built from https://develop.svn.wordpress.org/trunk@36903


git-svn-id: http://core.svn.wordpress.org/trunk@36871 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Weston Ruter
2016-03-09 19:33:27 +00:00
parent 90c7ce63d9
commit 055154cb65
4 changed files with 8 additions and 2 deletions

View File

@@ -706,6 +706,10 @@ function get_body_class( $class = '' ) {
if ( get_background_color() !== get_theme_support( 'custom-background', 'default-color' ) || get_background_image() )
$classes[] = 'custom-background';
if ( has_custom_logo() ) {
$classes[] = 'wp-custom-logo';
}
$page = $wp_query->get( 'page' );
if ( ! $page || $page < 2 )