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:
parent
af0815a45c
commit
e3e667056d
|
@ -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' );
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue