Make WordPress Core


Ignore:
Timestamp:
03/09/2016 07:32:33 PM (10 years ago)
Author:
westonruter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r36837 r36903  
    706706    if ( get_background_color() !== get_theme_support( 'custom-background', 'default-color' ) || get_background_image() )
    707707        $classes[] = 'custom-background';
     708
     709    if ( has_custom_logo() ) {
     710        $classes[] = 'wp-custom-logo';
     711    }
    708712
    709713    $page = $wp_query->get( 'page' );
Note: See TracChangeset for help on using the changeset viewer.