Make WordPress Core


Ignore:
Timestamp:
05/18/2012 08:22:57 PM (12 years ago)
Author:
ryan
Message:

set_url_scheme() for header and background image srcs. see #20702

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-background.php

    r20757 r20830  
    208208if ( get_background_image() ) {
    209209    // background-image URL must be single quote, see below
    210     $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', '') . '\');'
     210    $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod('background_image_thumb', '') ) . '\');'
    211211        . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';'
    212212        . ' background-position: top ' . get_theme_mod('background_position_x', 'left');
     
    215215<div id="custom-background-image" style="<?php echo $background_styles; ?>"><?php // must be double quote, see above ?>
    216216<?php if ( get_background_image() ) { ?>
    217 <img class="custom-background-image" src="<?php echo get_theme_mod('background_image_thumb', ''); ?>" style="visibility:hidden;" alt="" /><br />
    218 <img class="custom-background-image" src="<?php echo 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', '') ); ?>" 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="" />
    219219<?php } ?>
    220220</div>
Note: See TracChangeset for help on using the changeset viewer.