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:
Scott Taylor 2014-02-27 15:22:13 +00:00
parent 7d57ca6c2c
commit f931929905

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