Title: jQuery Error
Last modified: September 1, 2016

---

# jQuery Error

 *  Resolved [plexus77](https://wordpress.org/support/users/plexus77/)
 * (@plexus77)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/jquery-error-43/)
 * 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
 * [https://wordpress.org/plugins/disable-comments/](https://wordpress.org/plugins/disable-comments/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Contributor [Samir Shah](https://wordpress.org/support/users/solarissmoke/)
 * (@solarissmoke)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/jquery-error-43/#post-7700948)
 * Thanks for reporting this – fixed in version 1.5.2.
 *  Thread Starter [plexus77](https://wordpress.org/support/users/plexus77/)
 * (@plexus77)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/jquery-error-43/#post-7700966)
 * Thanks Samir for the quick response.
 * Cheers,
    Morgan

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘jQuery Error’ is closed to new replies.

 * ![](https://ps.w.org/disable-comments/assets/icon-256x256.png?rev=2509854)
 * [Disable Comments - Remove Comments & Stop Spam [Multi-Site Support]](https://wordpress.org/plugins/disable-comments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disable-comments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disable-comments/)
 * [Active Topics](https://wordpress.org/support/plugin/disable-comments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disable-comments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disable-comments/reviews/)

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * 2 replies
 * 2 participants
 * Last reply from: [plexus77](https://wordpress.org/support/users/plexus77/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/jquery-error-43/#post-7700966)
 * Status: resolved