Make WordPress Core

Ticket #20448: 20448.custom-background.diff

File 20448.custom-background.diff, 1.3 KB (added by duck_, 12 years ago)
  • wp-includes/theme.php

     
    11021102 * @access protected
    11031103 */
    11041104function _custom_background_cb() {
    1105         // $background is the saved custom image, or the default image.
    1106         $background = get_background_image();
     1105        // $background is the saved custom image
     1106        $background = get_theme_mod( 'background_image' );
    11071107
    11081108        // $color is the saved custom color.
    11091109        // A default has to be specified in style.css. It will not be printed here.
     
    16771677                }());
    16781678        </script>
    16791679        <?php
    1680 }
    1681  No newline at end of file
     1680}
  • 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_theme_mod( 'background_image' ) || get_theme_support( 'custom-background', 'default-image' ) )
    505505                $classes[] = 'custom-background';
    506506
    507507        $page = $wp_query->get( 'page' );