Ticket #21391: 21391.alt_text.diff
File 21391.alt_text.diff, 837 bytes (added by , 8 years ago) |
---|
-
wp-admin/includes/media.php
2280 2280 <label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br /> 2281 2281 <textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea> 2282 2282 </p> 2283 <?php if ( substr( $post->post_mime_type, 0, 5 ) == 'image' ) : ?> 2283 2284 <p> 2284 2285 <label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br /> 2285 2286 <input type="text" class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" value="<?php echo esc_attr( $alt_text ); ?>" /> 2286 2287 </p> 2287 2288 </div> 2288 2289 // need a filter on this content2289 <?php 2290 endif; 2290 2291 } 2291 2292 2292 2293 /**