WordPress.org

Make WordPress Core

Changeset 22748


Ignore:
Timestamp:
11/21/2012 12:03:35 PM (8 years ago)
Author:
nacin
Message:

Non-images don't have alternative text. props helenyhou. see #21391.

File:
1 edited

Legend:

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

    r22747 r22748  
    22812281            <textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea>
    22822282        </p>
     2283    <?php if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) : ?>
    22832284        <p>
    22842285            <label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br />
     
    22872288    </div>
    22882289    <?php
    2289     // need a filter on this content
     2290    endif;
    22902291}
    22912292
Note: See TracChangeset for help on using the changeset viewer.