From 15b9961b520711ba335a92d1943d40df59e2539a Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 18 May 2012 20:22:57 +0000 Subject: [PATCH] set_url_scheme() for header and background image srcs. see #20702 git-svn-id: http://core.svn.wordpress.org/trunk@20830 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/custom-background.php | 6 +++--- wp-admin/custom-header.php | 2 +- wp-includes/class-wp-customize-control.php | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/custom-background.php b/wp-admin/custom-background.php index 4e3cbc0ba..c2b05c081 100644 --- a/wp-admin/custom-background.php +++ b/wp-admin/custom-background.php @@ -207,15 +207,15 @@ if ( $bgcolor = get_background_color() ) if ( get_background_image() ) { // background-image URL must be single quote, see below - $background_styles .= ' background-image: url(\'' . get_theme_mod('background_image_thumb', '') . '\');' + $background_styles .= ' background-image: url(\'' . set_url_scheme( get_theme_mod('background_image_thumb', '') ) . '\');' . ' background-repeat: ' . get_theme_mod('background_repeat', 'repeat') . ';' . ' background-position: top ' . get_theme_mod('background_position_x', 'left'); } ?>
-
- +
+
diff --git a/wp-admin/custom-header.php b/wp-admin/custom-header.php index 862d1023a..ca047b8d9 100644 --- a/wp-admin/custom-header.php +++ b/wp-admin/custom-header.php @@ -333,7 +333,7 @@ class Custom_Image_Header { $width = ''; if ( !empty( $header['attachment_id'] ) ) $width = ' width="230"'; - echo '' . esc_attr( $header_desc ) .''; + echo '' . esc_attr( $header_desc ) .''; echo ''; } echo '
'; diff --git a/wp-includes/class-wp-customize-control.php b/wp-includes/class-wp-customize-control.php index e9d0caddb..1c96ee046 100644 --- a/wp-includes/class-wp-customize-control.php +++ b/wp-includes/class-wp-customize-control.php @@ -343,7 +343,7 @@ class WP_Customize_Image_Control extends WP_Customize_Upload_Control { - + @@ -426,7 +426,7 @@ class WP_Customize_Header_Image_Control extends WP_Customize_Image_Control { foreach ( $headers as $header ) : ?> - + default_headers as $header ) : ?> - +