We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8270db8 commit b4a862dCopy full SHA for b4a862d
1 file changed
src/wp-admin/includes/media.php
@@ -3274,7 +3274,17 @@ function edit_form_image_editor( $post ) {
3274
<?php endif; ?>
3275
3276
<p>
3277
- <label for="attachment_caption"><strong><?php _e( 'Caption' ); ?></strong></label><br />
+ <label for="attachment_caption"><strong>
3278
+ <?php
3279
+ if ( str_starts_with( $post->post_mime_type, 'video' ) ) {
3280
+ _e( 'Video Description' );
3281
+ } elseif ( str_starts_with( $post->post_mime_type, 'image' ) ) {
3282
+ _e( 'Image Caption' );
3283
+ } else {
3284
+ _e( 'Caption' );
3285
+ }
3286
+ ?>
3287
+ </strong></label><br />
3288
<textarea class="widefat" name="excerpt" id="attachment_caption"><?php echo $post->post_excerpt; ?></textarea>
3289
</p>
3290
0 commit comments