WordPress/wp-content/themes
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
..
twentyeleven Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
twentyfifteen Bundled theme: Add preconnect to fonts.gstatic.com in 2012-15 themes. 2016-10-23 01:56:32 +00:00
twentyfourteen Customize: Use button with svg as click target instead of :before content, improving clickability of edit shortcuts in Firefox. 2016-11-04 17:16:26 +00:00
twentyseventeen 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
twentyten Bundled Themes: Bump versions and update theme tags. 2016-07-31 16:37:32 +00:00
twentythirteen Bundled theme: Add preconnect to fonts.gstatic.com in 2012-15 themes. 2016-10-23 01:56:32 +00:00
twentytwelve Bundled theme: Add preconnect to fonts.gstatic.com in 2012-15 themes. 2016-10-23 01:56:32 +00:00
index.php Remove closing PHP tags from the rest of index.php files in wp-content, for consistency with wp-content/index.php. 2014-06-05 15:59:14 +00:00