• Resolved Webzzz

    (@webzzz)


    Please add or update you plugin with this file, I tested this code after adding this file: https://code.jquery.com/ui/1.12.1/jquery-ui.min.js to the js folder.

    
    function rw_jquery_updater()
    {
        
        // jQuery
        // Deregister core jQuery
        wp_deregister_script('jquery');
        // Register
        wp_enqueue_script('jquery', plugins_url('/js/jquery-3.3.1.min.js', __FILE__), false, '3.3.1');
        
        // jQuery Migrate
        // Deregister core jQuery Migrate
        wp_deregister_script('jquery-migrate');
        // Register
        wp_enqueue_script('jquery-migrate', plugins_url('/js/jquery-migrate-3.0.0.min.js', __FILE__), array('jquery'), '3.0.0'); 
        // require jquery, as loaded above
    	
        // Deregister UI jQuery
        wp_deregister_script('jquery-ui-core');
        // Register
        wp_enqueue_script('jquery-ui-core', plugins_url('/js/jquery-ui-1.12.1.min.js', __FILE__), false, '1.12.1');
        
    }
    

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Webzzz

    (@webzzz)

    All works fine 🙂 I have tested over 45 plugins with this code…

    Now as a + Google Lighthouse don’t show any vulnerabilities anymore

    • This reply was modified 7 years, 4 months ago by Webzzz.
    Plugin Author Ramoonus

    (@ramoonus)

    the same file is already loaded?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Enhancement possibility’ is closed to new replies.