[wp-trac] [WordPress Trac] #43009: Create Video/Audio Playlist hooks not working as expected

WordPress Trac noreply at wordpress.org
Wed Apr 11 18:56:46 UTC 2018


#43009: Create Video/Audio Playlist hooks not working as expected
--------------------------+------------------------------
 Reporter:  iforrest      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.9.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  administration
--------------------------+------------------------------

Comment (by adamsilverstein):

 Hi @iforrest - thanks for the report, and thanks @birgire for the
 additional sleuthing.

 I think this is actually the expected behavior of the filter, it only
 affects what happens on initial page load and is not designed to hide the
 button always, although I can see how the naming might indicate that.
 These filters were introduced in
 https://core.trac.wordpress.org/ticket/41675 to enable developers to re-
 enable the (expensive) query for sound/video files when the page loads. By
 returning false, you are setting the button initial state to hidden,
 however once you change the media collection by uploading audio, the
 Create Audio Playlist option should appear.

 See docs at
 https://developer.wordpress.org/reference/hooks/media_library_show_audio_playlist/
 &
 https://developer.wordpress.org/reference/hooks/media_library_show_video_playlist/

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


More information about the wp-trac mailing list