Contact Form 7
JQuery is included in a wrong way (2 posts)

  1. Marco Cimmino
    Posted 5 years ago #

    please fix your plugin to include correctly jquery as the documentation states:

    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.

    Marco Cimmino

  2. Takayuki Miyoshi
    Plugin Author

    Posted 5 years ago #

    Hi Cimmo, thanks a lot for letting me know this. I've fixed it and released as Contact Form 7 2.4.5.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic