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:
Scott Taylor 2014-02-27 15:21:37 +00:00
parent ad0751a29c
commit 1a78a56e98
1 changed files with 1 additions and 1 deletions

View File

@ -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">