From 902aa0074f1f05ef8571ee503234d3b2011c2b60 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Wed, 21 Jan 2015 21:06:23 +0000 Subject: [PATCH] Twenty Twelve: more fixes for escaping and minor code style issues. See #29127. Built from https://develop.svn.wordpress.org/trunk@31262 git-svn-id: http://core.svn.wordpress.org/trunk@31243 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- header.php | 2 +- inc/custom-header.php | 16 +++++++--------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/header.php b/header.php index 4439627be..c3b99d6f3 100644 --- a/header.php +++ b/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/inc/custom-header.php b/inc/custom-header.php index 693249028..45174d476 100644 --- a/inc/custom-header.php +++ b/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">

-

>

+

+

- +