[wp-trac] [WordPress Trac] #38390: Twenty Seventeen: Playlists don't render on blog/archive pages

WordPress Trac noreply at wordpress.org
Sat Nov 5 00:44:30 UTC 2016


#38390: Twenty Seventeen: Playlists don't render on blog/archive pages
-------------------------------------+------------------------
 Reporter:  melchoyce                |       Owner:  joemcgill
     Type:  defect (bug)             |      Status:  closed
 Priority:  normal                   |   Milestone:  4.7
Component:  Bundled Theme            |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------------
Changes (by davidakennedy):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"39146"]:
 {{{
 #!CommitTicketReference repository="" revision="39146"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38390#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list