mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
In the tracklist for playlist, fall back to title
if there is no caption
.
Props bassgang. See #26631. Built from https://develop.svn.wordpress.org/trunk@27312 git-svn-id: http://core.svn.wordpress.org/trunk@27165 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7d57ca6c2c
commit
f931929905
@ -1138,7 +1138,7 @@ function wp_get_playlist( $attr, $type ) {
|
||||
<span class="wp-caption-meta wp-caption-artist">{{{ data.meta.artist }}}</span>
|
||||
</div>
|
||||
<# } else { #>
|
||||
<div class="wp-playlist-caption">{{{ data.caption }}}</div>
|
||||
<div class="wp-playlist-caption">{{{ data.caption ? data.caption : data.title }}}</div>
|
||||
<# } #>
|
||||
</script>
|
||||
<script type="text/html" id="tmpl-wp-playlist-item">
|
||||
|
Loading…
Reference in New Issue
Block a user