Make WordPress Core

Ticket #20448: 20448.13.diff

File 20448.13.diff, 632 bytes (added by nacin, 13 years ago)
  • wp-includes/post-template.php

     
    501501        if ( is_admin_bar_showing() )
    502502                $classes[] = 'admin-bar';
    503503
    504         if ( get_background_color() || get_theme_mod( 'background_image' ) || get_theme_support( 'custom-background', 'default-image' ) )
     504        if ( get_theme_mod( 'background_color' ) || get_background_image() || current_theme_supports( 'custom-background', 'default-image' ) )
    505505                $classes[] = 'custom-background';
    506506
    507507        $page = $wp_query->get( 'page' );