Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45130, comment 8


Ignore:
Timestamp:
10/25/2018 08:26:24 AM (7 years ago)
Author:
remzicavdar
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45130, comment 8

    initial v1  
    11If we upgrade jQuery we could do something like this:
    22{{{
    3 jQuery = jQuery.noConflict(); // I think we are already using this somewhere
    4 
    53jQuery(function( $ ) {
    64   // $ Works! You can test it with next line if you like
     
    1210
    1311{{{
    14 jQuery = jQuery.noConflict(); // I think we are already using this somewhere
     12jQuery = jQuery.noConflict(); // We are already doing this at the end of the jquery file: jQuery.noConflict();
    1513
    1614jQuery(document).ready(function($) {
     
    2119
    2220Shall I check/test this? I could first test with the old jQuery?
     21
     22Edit: I see this is already done at the end in the jQuery file: wp-includes\js\jquery\jquery.js
     23{{{
     24jQuery.noConflict();
     25}}}
     26In jQuery 3 there's no need to put this. I have updated my examples.