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

WordPress Trac noreply at wordpress.org
Fri May 3 11:40:52 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         |
--------------------------------+------------------

Comment (by anastis):

 Replying to [comment:6 nacin]:
 > Anyone else imagining this as a good idea?
 >
 > {{{
 > $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-
 noconflict', 'jquery-migrate' ) );
 > $scripts->add( 'jquery-core', ... );
 > $scripts->add( 'jquery-noconflict', ... );
 > $scripts->add( 'jquery-migrate', ... );
 > }}}

 This seems to have make it into beta 2 in the form:
 {{{
 $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' )
 );
 $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(),
 '1.9.1' );
 $scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery-
 migrate.js', array(), '1.1.1' );
 }}}

 Is the jquery-migrate plugin going to be removed in 3.6 or in some future
 version?

 Also, I've seen some plugins (notably WooCommerce) checking for the jQuery
 version like this:
 {{{
 if ( isset( $wp_scripts->registered['jquery']->ver ) &&
 $wp_scripts->registered['jquery']->ver < '1.7' )
 }}}
 Perhaps it would be a good idea to add a version number to 'jquery' so
 that this kind of code remains functional?

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


More information about the wp-trac mailing list