Title: Bug in disabling auto-update
Last modified: August 24, 2016

---

# Bug in disabling auto-update

 *  [Nicholas Moline](https://wordpress.org/support/users/nickmoline/)
 * (@nickmoline)
 * [11 years ago](https://wordpress.org/support/topic/bug-in-disabling-auto-update/)
 * Hello,
 * There is a rather annoying bug in wordfence’s autoupdate in multi-site environments.
 * Your method of disabling the automatic update scheduler only happens on blog 
   id 1, however the scheduled event to run the automatic updates happens on every
   single blog. Since `wfConfig::autoUpdate` does not actually check to see if the
   autoupdate is enabled or not, the automatic updates happen even if we selected
   the option in the admin to disable it.
 * Furthermore to be more compatible with the development community at large, wordfence
   should not override wordpress’ defines for automatic updating.
 * I therefore propose adding the following to the top of the `wfConfig::autoUpdate`
   method in order to make sure this does not keep happening.
 *     ```
       if(wfConfig::get('autoUpdate') != '1'){
       	wp_clear_scheduled_hook('wordfence_daily_autoUpdate');
       	return;
       }
       if (defined('AUTOMATIC_UPDATER_DISABLED') && AUTOMATIC_UPDATER_DISABLED == true) {
       	return;
       }
       ```
   
 * This will make sure not to run the rest of the method (and clear the scheduled
   hook if it is) if the autoUpdate flag is not set, and will make sure to also 
   not run the code (but not clear the scheduled hook) if the wordpress define to
   disable the automatic updater is set.
 * Please set this soon, it is very annoying that wordfence keeps automatically 
   updating itself. We have customized the locked out message as the default one
   confuses our users considerably, and it is very frustrating that the message 
   keeps reverting itself even though we have toggled every single toggle and define
   possible to disable automatic updates.
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

Viewing 1 replies (of 1 total)

 *  [WFBrian](https://wordpress.org/support/users/wfbrian/)
 * (@wfbrian)
 * [11 years ago](https://wordpress.org/support/topic/bug-in-disabling-auto-update/#post-6067160)
 * Hi Nick,
 * I’ll pass this on to the developers. Thanks for taking the time to share it!
 * -Brian

Viewing 1 replies (of 1 total)

The topic ‘Bug in disabling auto-update’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WFBrian](https://wordpress.org/support/users/wfbrian/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/bug-in-disabling-auto-update/#post-6067160)
 * Status: not resolved