From 2aef92e5a34dad35beb07880d1489061d64d3846 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A4nk=20Klein?= Date: Mon, 11 May 2015 08:59:56 +0200 Subject: [PATCH] Fix remaining PHPCS errors: * Add ignoring in template-tags.php and comments.php. * Escape header text color in custom-header.php. --- comments.php | 2 +- inc/custom-header.php | 7 ++++--- inc/template-tags.php | 10 +++++----- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/comments.php b/comments.php index 77759bcb..83ca62d9 100644 --- a/comments.php +++ b/comments.php @@ -25,7 +25,7 @@ if ( post_password_required() ) {

' . get_the_title() . '' diff --git a/inc/custom-header.php b/inc/custom-header.php index 03bdbe75..6129f950 100644 --- a/inc/custom-header.php +++ b/inc/custom-header.php @@ -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() ); ?>
-

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

-
>
+

+ +

+
diff --git a/inc/template-tags.php b/inc/template-tags.php index 206e50a4..94b77bd5 100644 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -92,7 +92,7 @@ function _s_posted_on() { '' . esc_html( get_the_author() ) . '' ); - echo '' . $posted_on . ''; + echo '' . $posted_on . ''; // WPCS: XSS OK } endif; @@ -107,13 +107,13 @@ function _s_entry_footer() { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', '_s' ) ); if ( $categories_list && _s_categorized_blog() ) { - printf( '' . esc_html__( 'Posted in %1$s', '_s' ) . '', $categories_list ); + printf( '' . esc_html__( 'Posted in %1$s', '_s' ) . '', $categories_list ); // WPCS: XSS OK } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html__( ', ', '_s' ) ); if ( $tags_list ) { - printf( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_list ); + printf( '' . esc_html__( 'Tagged %1$s', '_s' ) . '', $tags_list ); // WPCS: XSS OK } } @@ -189,7 +189,7 @@ function the_archive_title( $before = '', $after = '' ) { $title = apply_filters( 'get_the_archive_title', $title ); if ( ! empty( $title ) ) { - echo $before . $title . $after; + echo $before . $title . $after; // WPCS: XSS OK } } endif; @@ -216,7 +216,7 @@ function the_archive_description( $before = '', $after = '' ) { * * @param string $description Archive description to be displayed. */ - echo $before . $description . $after; + echo $before . $description . $after; // WPCS: XSS OK } } endif;