[wp-trac] [WordPress Trac] #22975: Remove deprecated jQuery methods from core to be safe for jQuery 1.9

WordPress Trac noreply at wordpress.org
Sat Jan 26 19:49:02 UTC 2013


#22975: Remove deprecated jQuery methods from core to be safe for jQuery 1.9
--------------------------------+------------------
 Reporter:  ocean90             |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  3.6
Component:  External Libraries  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  needs-patch         |
--------------------------------+------------------
Changes (by Lwangaman):

 * cc: donjohn.fmmi@… (added)


Comment:

 jQuery 1.9 has specifically deprecated the methods ".live()" and
 ".browser()" in favour of ".on()" and ".support()" respectively.
 This breaks "wp-includes/js/admin-bar.js" (or "wp-includes/js/admin-
 bar.min.js") which makes use of the "$.browser()" method to target
 Mozilla. Hovering over admin bar items when using jQuery 1.9 results in
 these errors in the console:
 Uncaught TypeError: Cannot read property 'mozilla' of undefined ----
 admin-bar.min.js:1
 It will be necessary to target the specific functionality of mozilla that
 is different from other browsers in order to use "$.support()".

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22975#comment:27>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list