Ticket #21241: 21241.patch
File 21241.patch, 1.8 KB (added by , 13 years ago) |
---|
-
wp-admin/custom-background.php
211 211 212 212 if ( get_background_image() ) { 213 213 // background-image URL must be single quote, see below 214 $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ) . '\');'214 $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', get_background_image() ) ) ) . '\');' 215 215 . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';' 216 216 . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); 217 217 } 218 218 ?> 219 219 <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?> 220 220 <?php if ( get_background_image() ) { ?> 221 <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 />222 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ); ?>" style="visibility:hidden;" alt="" />221 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', get_background_image() ) ) ); ?>" style="visibility:hidden;" alt="" /><br /> 222 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', get_background_image() ) ) ); ?>" style="visibility:hidden;" alt="" /> 223 223 <?php } ?> 224 224 </div> 225 225 <?php } ?>