Make WordPress Core

Changeset 23940


Ignore:
Timestamp:
04/09/2013 05:12:47 PM (12 years ago)
Author:
SergeyBiryukov
Message:

Add alt attribute for selected image. see #19570.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/post-formats.php

    r23939 r23940  
    3333                <?php
    3434                    if ( $image )
    35                         echo '<img src="' . esc_url( $image ) . '" />';
     35                        printf( '<img src="%s" alt="%s" />', esc_url( $image ), get_the_title( $format_meta['image'] ) );
    3636                    else
    3737                        _e( 'Select / Upload Image' );
Note: See TracChangeset for help on using the changeset viewer.