Changeset 21001
- Timestamp:
- 06/05/2012 06:35:31 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post-template.php
r20973 r21001 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 -
trunk/wp-includes/theme.php
r20973 r21001 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 if ( ! $background && ! $color )1108 if ( ! $background && ! $color && ! get_theme_support( 'custom-background', 'default-image' ) ) 1109 1109 return; 1110 1110 … … 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 ?>
Note: See TracChangeset
for help on using the changeset viewer.