Plugin jQuery version VS Theme jQuery version: search for best practice
-
Hi there
I have built a WordPress plugin that is based on jQuery and I am using wp_enqueue_script(‘jquery’) to make it all work.Let say the default version of jQuery loaded by WordPress is 1.7.2, what would happen if the users installs a theme based on a different version of jQuery?
1. What version of jQuery will run in the page where the plugin is called: the default version of jQuery (as I’m using wp_enqueue_script(‘jquery’)) or the version of jQuery called in theme?
2. I can’t figure out what version of jQuery will be used if a page includes multiple plugins and if each one of theme uses a different of jQuery? Will everything mix up and end up in conflicts?
Thanks for your help
The topic ‘Plugin jQuery version VS Theme jQuery version: search for best practice’ is closed to new replies.