[Plugin: Contact Form 7] JQuery is included in a wrong way
-
Hi,
please fix your plugin to include correctly jquery as the documentation states:
https://codex.www.ads-software.com/Function_Reference/wp_enqueue_scriptUse 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
- The topic ‘[Plugin: Contact Form 7] JQuery is included in a wrong way’ is closed to new replies.