In the tracklist for playlist, fall back to title
if there is no caption
.
Props bassgang. See #26631. git-svn-id: https://develop.svn.wordpress.org/trunk@27312 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ad0751a29c
commit
1a78a56e98
@ -1138,7 +1138,7 @@ function wp_get_playlist( $attr, $type ) {
|
|||||||
<span class="wp-caption-meta wp-caption-artist">{{{ data.meta.artist }}}</span>
|
<span class="wp-caption-meta wp-caption-artist">{{{ data.meta.artist }}}</span>
|
||||||
</div>
|
</div>
|
||||||
<# } else { #>
|
<# } else { #>
|
||||||
<div class="wp-playlist-caption">{{{ data.caption }}}</div>
|
<div class="wp-playlist-caption">{{{ data.caption ? data.caption : data.title }}}</div>
|
||||||
<# } #>
|
<# } #>
|
||||||
</script>
|
</script>
|
||||||
<script type="text/html" id="tmpl-wp-playlist-item">
|
<script type="text/html" id="tmpl-wp-playlist-item">
|
||||||
|
Loading…
Reference in New Issue
Block a user