Changeset 54243 for trunk/src/wp-includes/media-template.php
- Timestamp:
- 09/20/2022 04:00:35 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/media-template.php
r54063 r54243 476 476 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 477 477 <# if ( 'image' === data.type ) { #> 478 <span class="setting has-description" data-setting="alt">478 <span class="setting alt-text has-description" data-setting="alt"> 479 479 <label for="attachment-details-two-column-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 480 < input type="text" id="attachment-details-two-column-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />480 <textarea id="attachment-details-two-column-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 481 481 </span> 482 482 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> … … 707 707 <# var maybeReadOnly = data.can.save || data.allowLocalEdits ? '' : 'readonly'; #> 708 708 <# if ( 'image' === data.type ) { #> 709 <span class="setting has-description" data-setting="alt">709 <span class="setting alt-text has-description" data-setting="alt"> 710 710 <label for="attachment-details-alt-text" class="name"><?php _e( 'Alt Text' ); ?></label> 711 < input type="text" id="attachment-details-alt-text" value="{{ data.alt }}" aria-describedby="alt-text-description" {{ maybeReadOnly }} />711 <textarea id="attachment-details-alt-text" aria-describedby="alt-text-description" {{ maybeReadOnly }}>{{ data.alt }}</textarea> 712 712 </span> 713 713 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> … … 1015 1015 <span class="setting alt-text has-description"> 1016 1016 <label for="embed-image-settings-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 1017 < input type="text" id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description" />1017 <textarea id="embed-image-settings-alt-text" data-setting="alt" aria-describedby="alt-text-description"></textarea> 1018 1018 </span> 1019 1019 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p> … … 1078 1078 <span class="setting alt-text has-description"> 1079 1079 <label for="image-details-alt-text" class="name"><?php _e( 'Alternative Text' ); ?></label> 1080 < input type="text" id="image-details-alt-text" data-setting="alt" value="{{ data.model.alt }}" aria-describedby="alt-text-description" />1080 <textarea id="image-details-alt-text" data-setting="alt" aria-describedby="alt-text-description">{{ data.model.alt }}</textarea> 1081 1081 </span> 1082 1082 <p class="description" id="alt-text-description"><?php echo $alt_text_description; ?></p>
Note: See TracChangeset
for help on using the changeset viewer.