Skip to content

Commit b1b3ea7

Browse files
MediaTemplate: Update caption labels
1 parent 0adfdc8 commit b1b3ea7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/wp-includes/media-template.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,13 @@ function wp_print_media_templates() {
538538
<?php endforeach; ?>
539539
<# } #>
540540
<span class="setting" data-setting="caption">
541+
<# if ( 'video' === data.type ) { #>
542+
<label for="attachment-details-two-column-caption" class="name"><?php _e( 'Video Description' ); ?></label>
543+
<# } else if ( 'image' === data.type ) { #>
544+
<label for="attachment-details-two-column-caption" class="name"><?php _e( 'Image Caption' ); ?></label>
545+
<# } else { #>
541546
<label for="attachment-details-two-column-caption" class="name"><?php _e( 'Caption' ); ?></label>
547+
<# } #>
542548
<textarea id="attachment-details-two-column-caption" {{ maybeReadOnly }}>{{ data.caption }}</textarea>
543549
</span>
544550
<span class="setting" data-setting="description">
@@ -790,7 +796,13 @@ function wp_print_media_templates() {
790796
<?php endforeach; ?>
791797
<# } #>
792798
<span class="setting" data-setting="caption">
799+
<# if ( 'video' === data.type ) { #>
800+
<label for="attachment-details-caption" class="name"><?php _e( 'Video Description' ); ?></label>
801+
<# } else if ( 'image' === data.type ) { #>
802+
<label for="attachment-details-caption" class="name"><?php _e( 'Image Caption' ); ?></label>
803+
<# } else { #>
793804
<label for="attachment-details-caption" class="name"><?php _e( 'Caption' ); ?></label>
805+
<# } #>
794806
<textarea id="attachment-details-caption" {{ maybeReadOnly }}>{{ data.caption }}</textarea>
795807
</span>
796808
<span class="setting" data-setting="description">

0 commit comments

Comments
 (0)