• I have been using this code in my plugin for the last 4 to 5 years :-

    add_filter( ‘auto_update_core’, ‘__return_false’ );

    The last version of WP I was using was 4.9.8 and over the years WordPress always asked me whether I wanted to upgrade to the latest version. Unfortunately, yesterday I was sent an email from my hosting provider that my site has been upgraded to version 5.0.2.

    When I logged into my WP site I found that it had automatically been upgraded.

    How can this be? It should not have been upgraded as the add_filter was still active.

    • This topic was modified 6 years, 3 months ago by peter achutha.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You say got an email from your hosting provider. Then they upgraded it. Not WordPress.

    WordPress can update itself, but you turned that off. If your hosting provider upgraded it directly, well, WordPress can’t exactly stop that.

    Thread Starter peter achutha

    (@peter-achutha)

    Hi Samuel Wood (Otto),

    Thanks for your reply as I was worried that it was a new feature in WP to have automatic upgrades permanently on. My hosting provider had automatic upgrades turned on permanently as they thought it was important, for security reason, to have the latest version of WP.

    Does this mean that others can modify WP commands and syntax without WP approval?

    I sent my hosting provider the following message

    ——– message to hosting provider ————–
    As a WordPress developer I have always upgraded my WP sites manually because I cannot allow automatic upgrades when I am in the middle of testing and debugging a feature or a plugin otherwise it will be difficult to find out the correct results. Just imagine that while you are making a pizza someone dumps some ‘liver and kidney’ sauce on your pizza behind your back? You would never be able to figure out what went wrong with your recipe, would you?

    It also means that your system is modifying the behavior of WordPress and so is not running to specifications mentioned in the WordPress codex. Please read the WordPress codex to enlighten yourself on what is the WordPress standard that is accepted by everyone https://codex.www.ads-software.com/Configuring_Automatic_Background_Updates.

    If your server is planning to come out with their own non-standard version of WordPress you should have let me know before I signed up for hosting on your systems.

    I have strictly followed all WordPress rules and laws and have several plugins in their repository and do not want to use a non-standard version of WordPress.

    Please understand this as this is very important to all WordPress developers, we only want to use the version supplied by Automattic and not by other third parties.
    ——— end of message to hosting provider ———

    They have now turned off the automatic upgrade override feature and I can return to my software development.

    Thanks for the reassurance that it was not WP feature.

    Best regards,
    Peter Achutha

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Does this mean that others can modify WP commands and syntax without WP approval?

    No, it means that updating WordPress is simply a matter of replacing the old WP files with the new WP files. That’s something anybody with access to the files can do, and your host certainly has that.

    However, yes, WordPress is free and open source software. Anybody can modify it, and use it, for any reason. We are not in control over all WordPress sites.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Upgraded to WP 5 while add_filter disabled it’ is closed to new replies.