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:
parent
db94cf138b
commit
99a0fef80c
|
@ -32,7 +32,7 @@ $format_meta = get_post_format_meta( $post_ID );
|
||||||
data-update="<?php esc_attr_e( 'Select Image' ); ?>">
|
data-update="<?php esc_attr_e( 'Select Image' ); ?>">
|
||||||
<?php
|
<?php
|
||||||
if ( $image )
|
if ( $image )
|
||||||
echo '<img src="' . esc_url( $image ) . '" />';
|
printf( '<img src="%s" alt="%s" />', esc_url( $image ), get_the_title( $format_meta['image'] ) );
|
||||||
else
|
else
|
||||||
_e( 'Select / Upload Image' );
|
_e( 'Select / Upload Image' );
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue