From 93ab0818209657febc7b4957f662634286ecc18d Mon Sep 17 00:00:00 2001 From: Kirk Wight Date: Sat, 3 May 2014 21:46:58 -0400 Subject: [PATCH] Additional escaping and removing of unnecessary title attributes. --- content-single.php | 6 +++--- functions.php | 4 ++-- header.php | 10 +++++----- image.php | 14 +++++++------- no-results.php | 6 +++--- searchform.php | 2 +- sidebar.php | 4 ++-- single.php | 2 +- 8 files changed, 24 insertions(+), 24 deletions(-) diff --git a/content-single.php b/content-single.php index c290fd7f35..cb89ab3638 100644 --- a/content-single.php +++ b/content-single.php @@ -17,7 +17,7 @@
- '' ) ); ?> + '' ) ); ?>
diff --git a/functions.php b/functions.php index 23435e58ab..69dd46d86d 100644 --- a/functions.php +++ b/functions.php @@ -290,7 +290,7 @@ function debut_comment( $comment, $args, $depth ) {
- + $depth, 'max_depth' => $args['max_depth'], 'before' => ' ⋅ ' ) ) ); if ( $can_edit_post ) { edit_comment_link( __( 'Edit', 'debut' ), ' ⋅ ' ); } ?>
@@ -460,7 +460,7 @@ function debut_lang_switcher() { $html = '
'; foreach( $lang as $value ) { if ( 0 == $value[ 'active' ] ) { - $html .= '' . $value[ 'language_code' ] . ''; + $html .= '' . esc_html( $value[ 'language_code' ] ) . ''; } } $html .= '
'; diff --git a/header.php b/header.php index a7c3dce13b..8b202065da 100644 --- a/header.php +++ b/header.php @@ -39,8 +39,8 @@ */ ?> @@ -53,7 +53,7 @@
-

+

@@ -63,8 +63,8 @@ diff --git a/image.php b/image.php index b955ef4b5b..acdf084402 100644 --- a/image.php +++ b/image.php @@ -24,14 +24,14 @@ printf( __( 'Published at %4$s × %5$s in %7$s', 'debut' ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), - wp_get_attachment_url(), + esc_url( wp_get_attachment_url() ), $metadata['width'], $metadata['height'], - get_permalink( $post->post_parent ), - get_the_title( $post->post_parent ) + esc_url( get_permalink( $post->post_parent ) ), + esc_html( get_the_title( $post->post_parent ) ) ); ?> -   •   ', '' ); ?> +   •   ', '' ); ?>