From 4c5f80c839ee92a87edcd03bac9066b190a628e2 Mon Sep 17 00:00:00 2001 From: "David A. Kennedy" Date: Sat, 5 Nov 2016 00:45:31 +0000 Subject: [PATCH] Twenty Seventeen: Fix playlists not rendering on blog/archive pages when using video or audio post format TwentySeventeen attempts to highlight media found in post content by using `get_media_embedded_in_content()` to extract videos from the content and display their HTML differently. However, the HTML being generated by the playlist shortcode relies on JavaScript to update the video element with the markup needed to display the playlist properly. The `get_media_embedded_in_content()` function wasn't designed to handle this use case. The patch looks for the presence of `wp-playlist-script` in the content and shows the standard content rather than trying to pluck the media elements from the content using `get_media_embedded_in_content()`. Props joemcgill. Fixes #38390. Built from https://develop.svn.wordpress.org/trunk@39146 git-svn-id: http://core.svn.wordpress.org/trunk@39086 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../twentyseventeen/template-parts/post/content-audio.php | 8 +++++++- .../twentyseventeen/template-parts/post/content-video.php | 7 ++++++- wp-includes/version.php | 2 +- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php b/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php index 4b64427a56..19c79acb2a 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-audio.php @@ -41,7 +41,13 @@ diff --git a/wp-content/themes/twentyseventeen/template-parts/post/content-video.php b/wp-content/themes/twentyseventeen/template-parts/post/content-video.php index 95abee412a..cfa37554bf 100644 --- a/wp-content/themes/twentyseventeen/template-parts/post/content-video.php +++ b/wp-content/themes/twentyseventeen/template-parts/post/content-video.php @@ -40,7 +40,12 @@ diff --git a/wp-includes/version.php b/wp-includes/version.php index 4ac9ed61e4..40853e31cc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta2-39145'; +$wp_version = '4.7-beta2-39146'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.