Ticket #50066: 50066.diff
File 50066.diff, 2.6 KB (added by , 5 years ago) |
---|
-
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