Ticket #18041: 18041.2.patch
File 18041.2.patch, 1.6 KB (added by , 13 years ago) |
---|
-
wp-admin/custom-background.php
190 190 191 191 if ( get_background_image() ) { 192 192 // background-image URL must be single quote, see below 193 $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', '') . '\');'193 $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', get_background_image() ) . '\');' 194 194 . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';' 195 195 . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); 196 196 } 197 197 ?> 198 198 <div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?> 199 199 <?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="" />200 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', get_background_image() ); ?>" style="visibility:hidden;" alt="" /><br /> 201 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', get_background_image() ); ?>" style="visibility:hidden;" alt="" /> 202 202 <?php } ?> 203 203 </div> 204 204 <?php } ?> … … 358 358 } 359 359 360 360 } 361 ?> 361 ?> 362 No newline at end of file