Add alt attribute for selected image. see #19570.

git-svn-id: https://develop.svn.wordpress.org/trunk@23940 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2013-04-09 17:12:47 +00:00
parent db94cf138b
commit 99a0fef80c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ $format_meta = get_post_format_meta( $post_ID );
data-update="<?php esc_attr_e( 'Select Image' ); ?>">
<?php
if ( $image )
echo '<img src="' . esc_url( $image ) . '" />';
printf( '<img src="%s" alt="%s" />', esc_url( $image ), get_the_title( $format_meta['image'] ) );
else
_e( 'Select / Upload Image' );
?>