WordPress.org

Support

Support » Plugins and Hacks » Contact Form 7 » [Plugin: Contact Form 7] JQuery is included in a wrong way

[Plugin: Contact Form 7] JQuery is included in a wrong way

  • Hi,
    please fix your plugin to include correctly jquery as the documentation states:
    http://codex.wordpress.org/Function_Reference/wp_enqueue_script

    Use the wp_enqueue_scripts action to call this function, or admin_enqueue_scripts to call it on the admin side. Calling it outside of an action can lead to troubles. See #11526 for details.

    You are not complying with this rule, for example from Contact Form 7 v2.4.4:
    admin.php – line 146
    add_action( ‘admin_print_scripts’, ‘wpcf7_admin_enqueue_scripts’ );
    should be:
    add_action( ‘admin_enqueue_scripts’, ‘wpcf7_admin_enqueue_scripts’ );

    controller.php – line 246
    add_action( ‘wp_print_scripts’, ‘wpcf7_enqueue_scripts’ );
    should be:
    add_action( ‘wp_enqueue_scripts’, ‘wpcf7_enqueue_scripts’ );

    otherwise you screw _all_ plugins that use jquery, mine included and people bother me.

    thanks
    Marco Cimmino

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] JQuery is included in a wrong way’ is closed to new replies.
Skip to toolbar