[wp-trac] [WordPress Trac] #45953: Jquery & Jquery UI update

WordPress Trac noreply at wordpress.org
Fri Jan 18 02:50:16 UTC 2019


#45953: Jquery & Jquery UI update
-------------------------------------+-------------------------------------
 Reporter:  Webzzz                   |       Owner:  (none)
     Type:  enhancement              |      Status:  reopened
 Priority:  normal                   |   Milestone:
Component:  General                  |     Version:  5.0.3
 Severity:  major                    |  Resolution:
 Keywords:  needs-patch needs-       |     Focuses:  ui, javascript,
  refresh dev-feedback 2nd-opinion   |  administration, performance,
                                     |  privacy, coding-standards
-------------------------------------+-------------------------------------

Comment (by Webzzz):

 Can some one help with this code maybe? as a temporary solution...

 {{{
 // include new version of jQuery
 function register_jquery_ls() {

         wp_deregister_script( 'jquery-core' );
         wp_register_script( 'jquery-core',
 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.js', false,
 '3.3.1' );
         wp_enqueue_script( 'jquery-core' );

         wp_deregister_script( 'jquery-migrate' );
         wp_register_script( 'jquery-migrate',
 'https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js', false,
 '3.3.1' );
         wp_enqueue_script( 'jquery-migrate' );

         wp_deregister_script( 'jquery-ui-core' );
         wp_register_script( 'jquery-ui-core',
 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js',
 false, '1.12.1' );
         wp_enqueue_script( 'jquery-ui-core' );
 }

 add_action('init', 'register_jquery_ls');
 }}}

 For some reason this code is not working properly, the first version of
 the code + plugin worked 100%

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45953#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list