Merge pull request #188 from slobodan/issue-184

Added strip_tags when get_the_title is used in title attribute in image.php. Fixes #188.
This commit is contained in:
Konstantin Obenland 2013-03-26 11:58:35 -07:00
commit 6752ef06a5
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>