• I do love your plugin. But.. if I add the following code to my themes functions.php the accordions are not displayed. Looks like you need to update your code.

    // ----------------------------------------------------------------------------------
    //  Remove JQuery migrate
    // ----------------------------------------------------------------------------------
    
    function remove_jquery_migrate($scripts)
    {
        if (!is_admin() && isset($scripts->registered['jquery'])) {
            $script = $scripts->registered['jquery'];
            
            if ($script->deps) { // Check whether the script has any dependencies
                $script->deps = array_diff($script->deps, array(
                    'jquery-migrate'
                ));
            }
        }
    }
    
    add_action('wp_default_scripts', 'remove_jquery_migrate');
Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter a223123131

    (@a223123131)

    Looks like the plugin is dead and not longer usable. With the upcomming WP releases there are huge changes in jquery. This will break th eplugin and I do not install old jquery versions to get this plugin running… this is a performance and security issue

    Thread Starter a223123131

    (@a223123131)

    Will see if this plugin is still working with Worpress 5.7

    Thread Starter a223123131

    (@a223123131)

    Removed the plugin now… not interested in unsuported old code on my site

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove JQuery migrate’ is closed to new replies.