Fix remaining PHPCS errors:
* Add ignoring in template-tags.php and comments.php. * Escape header text color in custom-header.php.
This commit is contained in:
parent
89602b2c3a
commit
2aef92e5a3
3 changed files with 10 additions and 9 deletions
|
@ -112,11 +112,12 @@ if ( ! function_exists( '_s_admin_header_image' ) ) :
|
|||
* @see _s_custom_header_setup().
|
||||
*/
|
||||
function _s_admin_header_image() {
|
||||
$style = sprintf( ' style="color:#%s;"', get_header_textcolor() );
|
||||
?>
|
||||
<div id="headimg">
|
||||
<h1 class="displaying-header-text"><a id="name"<?php echo $style; ?> onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<div class="displaying-header-text" id="desc"<?php echo $style; ?>><?php bloginfo( 'description' ); ?></div>
|
||||
<h1 class="displaying-header-text">
|
||||
<a id="name" style="<?php echo esc_attr( 'color: #' . get_header_textcolor() ); ?>" onclick="return false;" href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php bloginfo( 'name' ); ?></a>
|
||||
</h1>
|
||||
<div class="displaying-header-text" id="desc" style="<?php echo esc_attr( 'color: #' . get_header_textcolor() ); ?>"><?php bloginfo( 'description' ); ?></div>
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<img src="<?php header_image(); ?>" alt="">
|
||||
<?php endif; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue