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

WordPress Trac noreply at wordpress.org
Wed Nov 2 23:46:03 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:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------

Comment (by bradyvercher):

 Replying to [comment:10 joemcgill]:
 > I don't think there is any problem with themes using jQuery to listen
 for this event.

 I think you're right about that. I was thinking about the reverse scenario
 where I don't think you can use `addEventListener()` to catch an event
 triggered by jQuery. The approach in [attachment:38550.4.diff] does make
 more sense to me.

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


More information about the wp-trac mailing list