Changeset 21002
- Timestamp:
- 06/05/2012 06:44:31 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/theme.php
r21001 r21002 1103 1103 */ 1104 1104 function _custom_background_cb() { 1105 // $background is the saved custom image, or the default image. 1105 1106 $background = get_background_image(); 1107 1108 // $color is the saved custom color. 1109 // A default has to be specified in style.css. It will not be printed here. 1106 1110 $color = get_theme_mod( 'background_color' ); 1107 1111 … … 1131 1135 $style .= $image . $repeat . $position . $attachment; 1132 1136 } elseif ( get_theme_support( 'custom-background', 'default-image' ) ) { 1137 // If there is not a $background, but there is a default, then the default was 1138 // removed and an empty value was saved. Remove it: 1133 1139 $style .= " background-image: none;"; 1134 1140 }
Note: See TracChangeset
for help on using the changeset viewer.