[wp-trac] [WordPress Trac] #48562: Audio keeps playing on closing media/attachment details popup in WP Admin

WordPress Trac noreply at wordpress.org
Sun Aug 30 22:07:40 UTC 2020


#48562: Audio keeps playing on closing media/attachment details popup in WP Admin
--------------------------+-----------------------------
 Reporter:  amolv         |       Owner:  antpb
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by Mista-Flo):

 * keywords:  needs-patch => has-patch


Comment:

 All right, so I finally ended up finding the code.

 I have uploaded a patch that works, but I'm not sure about what I do
 exactly, so it might be a 'bad fix'.

 I saw that when switching to the next attachment in the modal, it stops
 the audio/video. So I looked at the code, and I saw that it fires a
 refresh event. This refresh event call the rerender function which do some
 stuff in the background that stops the audio. So I fired that event in the
 close event as well and it worked.

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


More information about the wp-trac mailing list