Don't include caption tags in gallery template when there is no caption.
props avryl. fixes #28089. Built from https://develop.svn.wordpress.org/trunk@28442 git-svn-id: http://core.svn.wordpress.org/trunk@28269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5a5c86139f
commit
d970ac80c6
|
@ -980,9 +980,11 @@ function wp_print_media_templates() {
|
||||||
<img src="{{ attachment.url }}" />
|
<img src="{{ attachment.url }}" />
|
||||||
<# } #>
|
<# } #>
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="wp-caption-text gallery-caption">
|
<# if ( attachment.caption.trim() ) { #>
|
||||||
{{ attachment.caption }}
|
<dd class="wp-caption-text gallery-caption">
|
||||||
</dd>
|
{{ attachment.caption }}
|
||||||
|
</dd>
|
||||||
|
<# } #>
|
||||||
</dl>
|
</dl>
|
||||||
<# if ( index % data.columns === data.columns - 1 ) { #>
|
<# if ( index % data.columns === data.columns - 1 ) { #>
|
||||||
<br style="clear: both;">
|
<br style="clear: both;">
|
||||||
|
|
Loading…
Reference in New Issue