[wp-trac] [WordPress Trac] #38550: Remove jQuery dependency from wp-custom-header.js

WordPress Trac noreply at wordpress.org
Wed Nov 2 00:00:08 UTC 2016


#38550: Remove jQuery dependency from wp-custom-header.js
-----------------------------------+-------------------------
 Reporter:  joemcgill              |       Owner:  joemcgill
     Type:  defect (bug)           |      Status:  accepted
 Priority:  normal                 |   Milestone:  4.7
Component:  Themes                 |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:  javascript
-----------------------------------+-------------------------
Changes (by joemcgill):

 * keywords:  needs-patch => 2nd-opinion has-patch
 * owner:   => joemcgill
 * status:  new => accepted


Comment:

 [attachment:38550.2.diff] Is a basic implementation using native events
 instead of jQuery's `trigger()` method that fires after a custom video is
 loaded so themes can bind any additional JS that needs to fire once the
 video is loaded. I'm unsure about dispatching these events from the global
 `document` root or if these should be dispatched from elsewhere.

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


More information about the wp-trac mailing list