jQuery Error
-
Hi guys,
Love you plugin by the way π
I develop custom wordpress themes and as part of my process I move jquery to load in the footer, in the latest version of wordpress and your plugin there is a snippet of code the loads before the footer scripts and is causing a jquery error….
On line 197 of disable_comments.php
add_action( 'wp_footer', array( $this, 'hide_meta_widget_link' ) );
This code loads javascript before the rest of the footer scripts causing a jQuery not defined error.
My fix is as follows…
add_action( 'wp_head', 'remove_disable_comments_action' ); function remove_disable_comments_action() { remove_action('wp_footer', array( Disable_Comments::get_instance(), 'hide_meta_widget_link' )); add_action('wp_footer', array( Disable_Comments::get_instance(), 'hide_meta_widget_link' ), 99); }
Could you please add a high priority to the add_action to stop this occuring please.
Regards,
Morgan
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘jQuery Error’ is closed to new replies.