Ticket #18041: 18041.patch
File 18041.patch, 1.6 KB (added by , 13 years ago) |
---|
-
wp-admin/custom-background.php
189 189 $background_styles .= 'background-color: #' . $bgcolor . ';'; 190 190 191 191 if ( get_background_image() ) { 192 193 // If using default, there won't be a thumbnail so use full image 194 $background_image = get_theme_mod('background_image_thumb', ''); 195 if (empty($background_image)) $background_image = get_background_image(); 196 192 197 // background-image URL must be single quote, see below 193 $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', ''). '\');'198 $background_styles .= ' background-image: url(\'' . $background_image . '\');' 194 199 . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';' 195 200 . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); 196 201 } 197 202 ?> 198 203 <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?> 199 204 <?php if ( get_background_image() ) { ?> 200 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" /><br />201 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" />205 <img class="custom-background-image" src="<?php echo $background_image; ?>" style="visibility:hidden;" alt="" /><br /> 206 <img class="custom-background-image" src="<?php echo $background_image; ?>" style="visibility:hidden;" alt="" /> 202 207 <?php } ?> 203 208 </div> 204 209 <?php } ?>