WordPress.org

Make WordPress Core

Ticket #21391: 21391.7.diff

File 21391.7.diff, 819 bytes (added by helenyhou, 17 months ago)
  • wp-admin/includes/media.php

     
    22872287                        <label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br /> 
    22882288                        <textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea> 
    22892289                </p> 
     2290 
    22902291        <?php if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) : ?> 
    22912292                <p> 
    22922293                        <label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br /> 
    22932294                        <input type="text" class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" value="<?php echo esc_attr( $alt_text ); ?>" /> 
    22942295                </p> 
     2296        <?php endif; ?> 
     2297 
    22952298        </div> 
    22962299        <?php 
    2297         endif; 
    22982300} 
    22992301 
    23002302/**