From 47ca4980d8a0cdb69eedadc9bdc2a17fdb74e74d Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 7 Feb 2023 12:08:22 +0000 Subject: [PATCH] Media: Remove unwanted quotation marks for playlist template. This changeset improves the way quotation marks are handled in the Playlist template. Follow-up to [27239], [33643 ]. Props hvar, Presskopp, sabernhardt, james-roberts, arrasel403, abidhasan112, robinwpdeveloper, costdev, mukesh27. Fixes #50865. Built from https://develop.svn.wordpress.org/trunk@55251 git-svn-id: http://core.svn.wordpress.org/trunk@54784 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/media.php | 28 +++++++++++++++++----------- wp-includes/version.php | 2 +- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/wp-includes/media.php b/wp-includes/media.php index 389be76f29..01062855a1 100644 --- a/wp-includes/media.php +++ b/wp-includes/media.php @@ -2638,10 +2638,14 @@ function wp_underscore_playlist_templates() { <# } #>
- + <# if ( data.meta.album || data.meta.artist ) { #> + + <# } else { #> + {{ data.title }} + <# } #> <# if ( data.meta.album ) { #>{{ data.meta.album }}<# } #> <# if ( data.meta.artist ) { #>{{ data.meta.artist }}<# } #> @@ -2654,14 +2658,16 @@ function wp_underscore_playlist_templates() { <# if ( data.caption ) { #> {{ data.caption }} <# } else { #> - - - <# if ( data.artists && data.meta.artist ) { #> - — {{ data.meta.artist }} + + + + — {{ data.meta.artist }} + <# } else { #> + {{{ data.title }}} <# } #> <# } #> diff --git a/wp-includes/version.php b/wp-includes/version.php index d343f511cf..e4b6731449 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-alpha-55250'; +$wp_version = '6.2-alpha-55251'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.