Support » Plugins » [Plugin: Comment Validation] jQuery library load

  • kirilln


    I’m the author of the TweetBlender plugin that also relies on jQuery. On one of the sites where our plugins are used together there were problems and I found that your plugin loads jQuery version 1.2.6 (current version is 1.3.2).

    I suggest that you unbundle jQuery from your plugin. WordPress comes with the library already available and is on top of keeping it the latest version.

    Here is an example of what your code might look like:

    // add javascript with dependency on jQuery to public pages only
    function load_js() {
    	wp_enqueue_script('jqvalidate', '/' . PLUGINDIR . '/comment-validation/jquery.validate.pack.js', array('jquery'));
            wp_enqueue_script('main', '/' . PLUGINDIR . '/comment-validation/comment-validation.js', array('jquery','jqvalidate'));

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Comment Validation] jQuery library load’ is closed to new replies.