From acbf0229cfb7900cf07c89caed0904fafe9b7ea8 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Tue, 28 Oct 2014 23:07:32 +0000 Subject: [PATCH] Twenty Fifteen: only escape HTML attribute output with `esc_attr()`. See #30133, props ocean90. git-svn-id: https://develop.svn.wordpress.org/trunk@30081 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyfifteen/inc/custom-header.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-content/themes/twentyfifteen/inc/custom-header.php b/src/wp-content/themes/twentyfifteen/inc/custom-header.php index 5cb92fe807..30c34e6999 100644 --- a/src/wp-content/themes/twentyfifteen/inc/custom-header.php +++ b/src/wp-content/themes/twentyfifteen/inc/custom-header.php @@ -149,13 +149,13 @@ if ( ! function_exists( 'twentyfifteen_admin_header_image' ) ) : * @see twentyfifteen_custom_header_setup(). */ function twentyfifteen_admin_header_image() { - $style = sprintf( ' style="color: #%s;"', get_header_textcolor() ); + $style = sprintf( ' style="color: #%s;"', esc_attr( get_header_textcolor() ) ); $color_scheme = twentyfifteen_get_color_scheme(); $header_background_color = get_theme_mod( 'header_background_color', $color_scheme[1] ); ?>
-

onclick="return false;" href="">

-
>
+

onclick="return false;" href="">

+
>