Don't include caption tags in gallery template when there is no caption.
props avryl. fixes #28089. git-svn-id: https://develop.svn.wordpress.org/trunk@28442 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ae938f524e
commit
e76bfbefbd
@ -980,9 +980,11 @@ function wp_print_media_templates() {
|
||||
<img src="{{ attachment.url }}" />
|
||||
<# } #>
|
||||
</dt>
|
||||
<dd class="wp-caption-text gallery-caption">
|
||||
{{ attachment.caption }}
|
||||
</dd>
|
||||
<# if ( attachment.caption.trim() ) { #>
|
||||
<dd class="wp-caption-text gallery-caption">
|
||||
{{ attachment.caption }}
|
||||
</dd>
|
||||
<# } #>
|
||||
</dl>
|
||||
<# if ( index % data.columns === data.columns - 1 ) { #>
|
||||
<br style="clear: both;">
|
||||
|
Loading…
Reference in New Issue
Block a user