Added strip_tags when get_the_title is used for title attribute in image.php

Aaddresses _s issue 184 - https://github.com/Automattic/_s/issues/184
This commit is contained in:
Slobodan Manic 2013-03-21 06:35:08 +01:00
parent 84ed9c519d
commit 410ca3b1df
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ get_header();
$metadata['width'],
$metadata['height'],
get_permalink( $post->post_parent ),
esc_attr( get_the_title( $post->post_parent ) ),
esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
get_the_title( $post->post_parent )
);
?>
@ -76,7 +76,7 @@ get_header();
}
?>
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( get_the_title() ); ?>" rel="attachment"><?php
<a href="<?php echo $next_attachment_url; ?>" title="<?php echo esc_attr( strip_tags( get_the_title() ) ); ?>" rel="attachment"><?php
$attachment_size = apply_filters( '_s_attachment_size', array( 1200, 1200 ) ); // Filterable image size.
echo wp_get_attachment_image( $post->ID, $attachment_size );
?></a>