Don’t replace jquery with an old cdn verision
-
This Plugin does replace the WordPress bundled jQuery with an old CDN Version. Besides that, using a CDN should be avoided security wise, I think it could break others code.
A workaround that seems to do the job is deregister jquery that this plugin has changed, and register and enqueue it again together with the jquery migrate helper.
the code that causes the issue from class-mailpet-cf7-integration.php
add_action('wp_enqueue_scripts', 'register_jquery'); function register_jquery() { if (!wp_script_is('jquery')) { // comment out the next two lines to load the local copy of jQuery wp_deregister_script('jquery'); wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js', false, '1.11.2'); wp_enqueue_script('jquery'); } }
- The topic ‘Don’t replace jquery with an old cdn verision’ is closed to new replies.