WordPress.org

Make WordPress Core

Ticket #20896: 20896.diff

File 20896.diff, 601 bytes (added by kobenland, 23 months ago)

Add 'no-customize-support' class to the body tag by default

  • wp-includes/post-template.php

     
    498498        if ( is_user_logged_in() ) 
    499499                $classes[] = 'logged-in'; 
    500500 
    501         if ( is_admin_bar_showing() ) 
     501        if ( is_admin_bar_showing() ) { 
    502502                $classes[] = 'admin-bar'; 
    503  
     503                $classes[] = 'no-customize-support'; 
     504        } 
     505         
    504506        if ( get_background_color() || get_theme_mod( 'background_image' ) || get_theme_support( 'custom-background', 'default-image' ) ) 
    505507                $classes[] = 'custom-background'; 
    506508