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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user