From 1a78a56e98313e6c31116a8a3960d326c9778c63 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 27 Feb 2014 15:21:37 +0000 Subject: [PATCH] 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 --- src/wp-includes/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/media.php b/src/wp-includes/media.php index e750cc7562..771c78fc3e 100644 --- a/src/wp-includes/media.php +++ b/src/wp-includes/media.php @@ -1138,7 +1138,7 @@ function wp_get_playlist( $attr, $type ) { {{{ data.meta.artist }}} <# } else { #> -
{{{ data.caption }}}
+
{{{ data.caption ? data.caption : data.title }}}
<# } #>