forked from mirror/_s
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:
parent
84ed9c519d
commit
410ca3b1df
|
@ -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>
|
||||
|
|
Reference in New Issue