mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user