Ticket #20734: 20734.diff
File 20734.diff, 1.6 KB (added by , 13 years ago) |
---|
-
wp-admin/custom-background.php
207 207 208 208 if ( get_background_image() ) { 209 209 // background-image URL must be single quote, see below 210 $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod( 'background_image_thumb', '') ) . '\');'210 $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ) . '\');' 211 211 . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';' 212 212 . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); 213 213 } 214 214 ?> 215 215 <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?> 216 216 <?php if ( get_background_image() ) { ?> 217 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', '') ); ?>" style="visibility:hidden;" alt="" /><br />218 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', '') ); ?>" style="visibility:hidden;" alt="" />217 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ); ?>" style="visibility:hidden;" alt="" /><br /> 218 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ); ?>" style="visibility:hidden;" alt="" /> 219 219 <?php } ?> 220 220 </div> 221 221 <?php } ?>