From 260f671a95ca1e7f0073952e48c08cd857e8dc73 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 21 Jan 2015 21:05:29 +0000 Subject: [PATCH] Twenty Twelve: more fixes for escaping and minor code style issues. See #29127. git-svn-id: https://develop.svn.wordpress.org/trunk@31262 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentytwelve/header.php | 2 +- .../themes/twentytwelve/inc/custom-header.php | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/wp-content/themes/twentytwelve/header.php b/src/wp-content/themes/twentytwelve/header.php index 4439627bea..c3b99d6f3d 100644 --- a/src/wp-content/themes/twentytwelve/header.php +++ b/src/wp-content/themes/twentytwelve/header.php @@ -46,7 +46,7 @@ - <?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> + <?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?> diff --git a/src/wp-content/themes/twentytwelve/inc/custom-header.php b/src/wp-content/themes/twentytwelve/inc/custom-header.php index 6932490281..45174d4762 100644 --- a/src/wp-content/themes/twentytwelve/inc/custom-header.php +++ b/src/wp-content/themes/twentytwelve/inc/custom-header.php @@ -147,19 +147,17 @@ function twentytwelve_admin_header_style() { * @since Twenty Twelve 1.0 */ function twentytwelve_admin_header_image() { + $style = 'color: #' . get_header_textcolor() . ';'; + if ( ! display_header_text() ) { + $style = 'display: none;'; + } ?>
- -

onclick="return false;" href="" tabindex="-1">

-

>

+

+

- +