Changeset 24630
- Timestamp:
- 07/10/2013 04:42:03 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/custom-background.php
r24621 r24630 204 204 205 205 if ( get_background_image() ) { 206 $background_image_thumb = esc_url( set_url_scheme( get_theme_mod( 'background_image_thumb', str_replace( '%', '%%', get_background_image() ) ) ) ); 206 207 // background-image URL must be single quote, see below 207 $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ). '\');'208 $background_styles .= ' background-image: url(\'' . $background_image_thumb . '\');' 208 209 . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';' 209 210 . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); … … 212 213 <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?> 213 214 <?php if ( get_background_image() ) { ?> 214 <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 />215 <img class="custom-background-image" src="<?php echo set_url_scheme( get_theme_mod( 'background_image_thumb', get_background_image() ) ); ?>" style="visibility:hidden;" alt="" />215 <img class="custom-background-image" src="<?php echo $background_image_thumb; ?>" style="visibility:hidden;" alt="" /><br /> 216 <img class="custom-background-image" src="<?php echo $background_image_thumb; ?>" style="visibility:hidden;" alt="" /> 216 217 <?php } ?> 217 218 </div>
Note: See TracChangeset
for help on using the changeset viewer.