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

WordPress Trac noreply at wordpress.org
Thu Apr 12 18:06:09 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 birgire):

 I think your doc comment proposal looks good.

 At least it looks like it's easier to explain the (persistent) behaviour
 rather than the (initially) behaviour ;-) because the user might wonder
 what happens after (initally) ;-)

 I tried to see if it's possible to add some extra logic into the callback
 here:

 {{{
 this.listenTo( wp.media.model.Attachments.all, 'change:type',
 this.mediaTypeCounts );

 }}}

 but it looks like it will not fire when audio/video is deleted. The
 {{{deleteAttachment}}} event fires though.

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


More information about the wp-trac mailing list