WordPress/wp-content/themes/twentyseventeen/template-parts
David A. Kennedy 4c5f80c839 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
2016-11-05 00:45:31 +00:00
..
footer Twenty Seventeen: Renaming of directory structure 2016-10-23 12:29:30 +00:00
header Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00
navigation Twenty Seventeen: Remove unnecessary l10n variables 2016-11-01 19:00:32 +00:00
page Twenty Seventeen: Improve user and developer experience with the customizer integration 2016-10-27 22:09:40 +00:00
post Twenty Seventeen: Fix playlists not rendering on blog/archive pages when using video or audio post format 2016-11-05 00:45:31 +00:00