[wp-trac] Re: [WordPress Trac] #4988: Included jQuery library 1.1.4 may be defective

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 18 21:23:49 GMT 2007


#4988: Included jQuery library 1.1.4 may be defective
----------------------------+-----------------------------------------------
 Reporter:  ionfish         |        Owner:  anonymous
     Type:  defect          |       Status:  closed   
 Priority:  normal          |    Milestone:           
Component:  Administration  |      Version:  2.3      
 Severity:  normal          |   Resolution:  invalid  
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by mdawaffe):

 WordPress has to use noConflict because it also uses prototype in places.
 Even after we switch everything to jQuery, WP will still use noConflict to
 give plugins the most flexibility.

 You should use the jQuery object initially instead of the $ object to
 avoid conflicts with WP, other JS libraries and even other jQuery plugins.

 {{{
 jQuery(document).ready(function($) {
  // The function was called with $ as its argument so
  // inside here, $ is the jQuery object as expected.
  // Here on out, you can just use $.
 } );
 }}}

 or just {{{jQuery(function($) { ... } );}}}

 http://docs.jquery.com/Events/ready

 There's some alternative solutions here:
 http://docs.jquery.com/Using_jQuery_with_Other_Libraries

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4988#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list