Ticket #50066: 50066.edit-media.diff
File 50066.edit-media.diff, 3.4 KB (added by , 5 years ago) |
---|
-
src/wp-admin/includes/media.php
3182 3182 <?php if ( 'image' === substr( $post->post_mime_type, 0, 5 ) ) : ?> 3183 3183 <p class="attachment-alt-text"> 3184 3184 <label for="attachment_alt"><strong><?php _e( 'Alternative Text' ); ?></strong></label><br /> 3185 < input type="text" class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" aria-describedby="alt-text-description" value="<?php echo esc_attr( $alt_text ); ?>" />3185 <textarea class="widefat" name="_wp_attachment_image_alt" id="attachment_alt" aria-describedby="alt-text-description"><?php echo esc_attr( $alt_text ); ?></textarea> 3186 3186 </p> 3187 3187 <p class="attachment-alt-text-description" id="alt-text-description"> 3188 3188 <?php -
src/wp-includes/media-template.php
454 454 <# if ( 'image' === data.type ) { #> 455 455 <span class="setting has-description" data-setting="alt"> 456 456 <label for="attachment-details-two-column-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 457 < input type="text" id="attachment-details-two-column-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />457 <textarea id="attachment-details-two-column-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 458 458 </span> 459 459 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 460 460 <# } #> … … 655 655 <# if ( 'image' === data.type ) { #> 656 656 <span class="setting has-description" data-setting="alt"> 657 657 <label for="attachment-details-alt-text" class="name"><?php _e( 'Alt Text' ); ?></label> 658 < input type="text" id="attachment-details-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />658 <textarea id="attachment-details-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 659 659 </span> 660 660 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 661 661 <# } #> … … 957 957 958 958 <span class="setting alt-text has-description"> 959 959 <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 960 < input type="text" id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description" />960 <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea> 961 961 </span> 962 962 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 963 963 … … 1020 1020 <div class="column-settings"> 1021 1021 <span class="setting alt-text has-description"> 1022 1022 <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 1023 < input type="text" id="image-details-alt-text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" />1023 <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea> 1024 1024 </span> 1025 1025 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> 1026 1026