Ticket #20448: 20448.custom-background.diff
File 20448.custom-background.diff, 1.3 KB (added by , 12 years ago) |
---|
-
wp-includes/theme.php
1102 1102 * @access protected 1103 1103 */ 1104 1104 function _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' ); 1107 1107 1108 1108 // $color is the saved custom color. 1109 1109 // A default has to be specified in style.css. It will not be printed here. … … 1677 1677 }()); 1678 1678 </script> 1679 1679 <?php 1680 } 1681 No newline at end of file 1680 } -
wp-includes/post-template.php
501 501 if ( is_admin_bar_showing() ) 502 502 $classes[] = 'admin-bar'; 503 503 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' ) ) 505 505 $classes[] = 'custom-background'; 506 506 507 507 $page = $wp_query->get( 'page' );