From c338a15b1f4cfa67b0ab9d1e037e9a9d8e8a701e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 16 May 2014 22:43:31 +0000 Subject: [PATCH] Twenty Ten: correct attribute escaping in the attachment template. Props philiparthurmoore, see #28251. git-svn-id: https://develop.svn.wordpress.org/trunk@28463 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-content/themes/twentyten/loop-attachment.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-content/themes/twentyten/loop-attachment.php b/src/wp-content/themes/twentyten/loop-attachment.php index 4e33d126c7..3976b0d6e8 100644 --- a/src/wp-content/themes/twentyten/loop-attachment.php +++ b/src/wp-content/themes/twentyten/loop-attachment.php @@ -18,7 +18,7 @@ post_parent ) ) : ?> -

← %s', 'twentyten' ), get_the_title( $post->post_parent ) ); ?>

@@ -52,7 +52,7 @@ $metadata = wp_get_attachment_metadata(); printf( __( 'Full size is %s pixels', 'twentyten' ), sprintf( '%3$s × %4$s', - wp_get_attachment_url(), + esc_url( wp_get_attachment_url() ), esc_attr( __( 'Link to full-size image', 'twentyten' ) ), $metadata['width'], $metadata['height'] @@ -85,7 +85,7 @@ $next_attachment_url = wp_get_attachment_url(); } ?> -

- +

post_excerpt ) ) the_excerpt(); ?>