[wp-trac] [WordPress Trac] #16494: Remove "no conflict" mode from bundled jquery

WordPress Trac noreply at wordpress.org
Fri Aug 9 21:21:59 UTC 2013


#16494: Remove "no conflict" mode from bundled jquery
--------------------------------+------------------------------
 Reporter:  lloydbudd           |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  low                 |   Milestone:  Awaiting Review
Component:  External Libraries  |     Version:  3.1
 Severity:  minor               |  Resolution:
 Keywords:  has-patch           |
--------------------------------+------------------------------
Changes (by atimmer):

 * cc: atimmermans@… (added)
 * keywords:  close => has-patch


Comment:

 I have added 16491.1.diff, this moves jQuery.noConflict to an inline
 script, using the patch I made for ticket #14853
 (http://core.trac.wordpress.org/attachment/ticket/14853/14853.3.diff).

 If the function wp_add_inline_script will be accepted to core the original
 use case is possible too, in the following way:

 {{{
 add_action( 'wp_enqueue_scripts', 'disable_no_conflict' )
 function disable_no_conflict() {
     wp_add_inline_script( 'jquery-core', '$=jQuery;' );
 }
 }}}

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


More information about the wp-trac mailing list