filters - Cannot change the definition of AUTOMATIC_UPDATER_DISABLED

admin2025-01-07  4

I have several WordPress sites that I want to enable auto update. I installed Background Update Tester to verify that the updates were enabled correctly, but I get the following message:

FAIL: The AUTOMATIC_UPDATER_DISABLED constant is defined as true.

It was defined as true in wp-config.php, but after I removed the line, it's still saying that the constant is true. I also tried to define the constant as false to no avail.

I also tried to add this filter inside a plugin:

add_filter('automatic_updater_disabled', '__return_false');

But WordPress still thinks the constant is true.

I ran a case insensitive grep for AUTOMATIC_UPDATER_DISABLED on my entire Wordpress directory with no results (except for class-wp-automatic-updater.php, which seems to check the definition).

What could be the problem?

I have several WordPress sites that I want to enable auto update. I installed Background Update Tester to verify that the updates were enabled correctly, but I get the following message:

FAIL: The AUTOMATIC_UPDATER_DISABLED constant is defined as true.

It was defined as true in wp-config.php, but after I removed the line, it's still saying that the constant is true. I also tried to define the constant as false to no avail.

I also tried to add this filter inside a plugin:

add_filter('automatic_updater_disabled', '__return_false');

But WordPress still thinks the constant is true.

I ran a case insensitive grep for AUTOMATIC_UPDATER_DISABLED on my entire Wordpress directory with no results (except for class-wp-automatic-updater.php, which seems to check the definition).

What could be the problem?

Share Improve this question edited Jul 13, 2017 at 16:10 Johansson 15.4k11 gold badges43 silver badges79 bronze badges asked Jul 13, 2017 at 15:55 ManuelManuel 92 bronze badges 4
  • 3 Would you by any chance be on managed hosting? – Tom J Nowell Commented Jul 13, 2017 at 16:17
  • I have the sites hosted on a VPS, but they were moved from a shared hosting site by GoDaddy. @TomJNowell – Manuel Commented Jul 14, 2017 at 17:54
  • Sorry guys, I just figured out that it was PHP zend opcache that was preventing my configuration from changing. Is there a way to close this question? – Manuel Commented Jul 14, 2017 at 21:13
  • You can write that down as an answer and mark it as the correct answer? – Tom J Nowell Commented Jul 14, 2017 at 23:59
Add a comment  | 

1 Answer 1

Reset to default 0

Have you looked at https://codex.wordpress.org/Configuring_Automatic_Background_Updates for help? Several options in there to enable/disable updates according to your needs?

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1736263593a903.html

最新回复(0)