Add alt attribute for selected image. see #19570.

git-svn-id: http://core.svn.wordpress.org/trunk@23940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2013-04-09 17:12:47 +00:00
parent af0815a45c
commit e3e667056d
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' );
?>