Changeset 21001 for trunk/wp-includes/theme.php
- Timestamp:
- 06/05/2012 06:35:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.