WordPress/wp-content/themes/twentyseventeen/template-parts/post
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
..
content-audio.php 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
content-excerpt.php Twenty Seventeen: Renaming of directory structure 2016-10-23 12:29:30 +00:00
content-gallery.php Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00
content-image.php Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00
content-none.php Twenty Seventeen: Renaming of directory structure 2016-10-23 12:29:30 +00:00
content-video.php 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
content.php Twenty Seventeen: Replace remaining Genericons with Font Awesome icons 2016-11-01 17:26:32 +00:00