File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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">
You can’t perform that action at this time.
0 commit comments