[wp-trac] [WordPress Trac] #34152: Several audio players on the same page get their controls mixed up

WordPress Trac noreply at wordpress.org
Thu Dec 10 19:36:10 UTC 2015


#34152: Several audio players on the same page get their controls mixed up
--------------------------+------------------------------
 Reporter:  Fab1en        |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.1
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+------------------------------

Comment (by swissspidy):

 `wp-mediaelement.js` does not use Underscore.js, therefore `_.clone` can't
 be used there reliably.

 But jQuery is available, so we could use something like `settings =
 jQuery.extend( {}, _wpmejsSettings );` (shallow copy) or `settings =
 jQuery.extend(true, {}, _wpmejsSettings );`.

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


More information about the wp-trac mailing list