Ticket #20448: 20448.8.diff
File 20448.8.diff, 1.5 KB (added by , 13 years ago) |
---|
-
wp-includes/theme.php
1102 1102 * @access protected 1103 1103 */ 1104 1104 function _custom_background_cb() { 1105 $background = get_ theme_mod( 'background_image');1105 $background = get_background_image(); 1106 1106 $color = get_theme_mod( 'background_color' ); 1107 1107 1108 1108 if ( ! $background && ! $color ) … … 1129 1129 $attachment = " background-attachment: $attachment;"; 1130 1130 1131 1131 $style .= $image . $repeat . $position . $attachment; 1132 } elseif ( get_theme_support( 'custom-background', 'default-image' ) ) { 1133 $style .= " background-image: none;"; 1132 1134 } 1133 1135 ?> 1134 1136 <style type="text/css" id="custom-background-css"> -
wp-includes/post-template.php
501 501 if ( is_admin_bar_showing() ) 502 502 $classes[] = 'admin-bar'; 503 503 504 if ( get_theme_mod( 'background_image' ) || get_theme_mod( 'background_color' ) || 505 ( '_custom_background_cb' != get_theme_support( 'custom-background', 'wp-head-callback' ) 506 && ( get_theme_support( 'custom-background', 'default-image' ) || 507 get_theme_support( 'custom-background', 'default-color' ) ) ) ) 504 if ( get_background_color() || get_theme_mod( 'background_image' ) || get_theme_support( 'custom-background', 'default-image' ) ) 508 505 $classes[] = 'custom-background'; 509 506 510 507 $page = $wp_query->get( 'page' );