diff --git a/wp-includes/media-template.php b/wp-includes/media-template.php index 5418a0a025..65803d4715 100644 --- a/wp-includes/media-template.php +++ b/wp-includes/media-template.php @@ -980,9 +980,11 @@ function wp_print_media_templates() { <# } #> - + <# if ( attachment.caption.trim() ) { #> + + <# } #> <# if ( index % data.columns === data.columns - 1 ) { #>