• Hi,

    It seems a new feature has been added to WordPress – our sites that have auto-updated to 4.4.4 are sending emails:

    Subject: [blogname] WordPress 4.5.3 is available. Please update!

    I have the following set on all our sites:
    define( 'WP_AUTO_UPDATE_CORE', 'minor' );

    I will update our sites when I get to it OK? Clients will not pay for it, so it can only be done as quickly as possible and without any testing when there are lulls in paying work.

    Is there a way to disable this behaviour? Is WordPress going to do this with every version released now? Can you remove this from the core?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter reidbusi

    (@reidbusi)

    Ya, this is super-annoying, being spammed by my own sites.

    This is only going to result in me setting:
    define('AUTOMATIC_UPDATER_DISABLED', true);

    To prevent WordPress from adding code that I do not approve of to our websites.

    Moderator Jose Castaneda

    (@jcastaneda)

    THEME COFFEE MONKEY

    Hi reidbusi!

    I’m not sure if you have come across the plugin: Easy update manager

    This may be able to help you in disabling updates. As for the emails you can try using the filter auto_core_update_send_email

    add_filter( 'auto_core_update_send_email', '__return_false' );

    The codex link: https://codex.wordpress.org/Configuring_Automatic_Background_Updates#Disable_Emails_via_Filter

    Let us know if that helps!

    Thread Starter reidbusi

    (@reidbusi)

    Thanks for the reply Jose, but unfortunately that is of no help to me. I want to receive email notification of automatic updates, I just do not want my WordPress installations sending update nag email spam.

    I suppose I can search the code for 4.5.3/4.4.4 and see where it was added and if I can disable it without a core modification.

    Between yesterday and today I have received 18 emails of the following format:

    Subject: [blogname] WordPress 4.5.3 is available. Please update!

    Body: Please update your site at http://example.com to WordPress 4.5.3.

    Updating is easy and only takes a few moments:
    http://example.com/wp-admin/update-core.php

    If you experience any issues or need support, the volunteers in the WordPress.org support forums may be able to help.
    https://wordpress.org/support/

    Keeping your site updated is important for security. It also makes the internet a safer place for you and your readers.

    The WordPress Team

    Do not want!

    As mentioned, I’ll update sites (if possible) when there is time. Clients will not pay for it. That is the reality.

    Thread Starter reidbusi

    (@reidbusi)

    Actually, this from the codex page led me to believe that perhaps I could disable these update nags:

    /* @param bool   $send        Whether to send the email. Default true.
     * @param string $type        The type of email to send.
     *                            Can be one of 'success', 'fail', 'critical'.
     * @param object $core_update The update offer that was attempted.
     * @param mixed  $result      The result for the core update. Can be WP_Error.
     */
    apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result );

    (note ‘manual’ is missing here)

    But…

    The following in wp-admin/includes/class-wp-upgrader.php (at line 3227 in 4.4.4 and at 3293 in 4.5.3) prevents one from being able to use this filter to disable the update nag in the case of ‘manual’ (when WP_AUTO_UPDATE_CORE == ‘minor’):

    if ( 'manual' !== $type && ! apply_filters( 'auto_core_update_send_email', true, $type, $core_update, $result ) )
    			return;

    …prevents me from being able to use this filter to disable the update nag spam. So I would need to modify the core. (not acceptable).

    Even if I was allowed to use this filter as I desire, I would have to add the filter function to all our sites themes functions.php and create child themes where none are present in order to do so and have it stick.

    Please make this go away. I know what version of WordPress our sites are running. I know when I’ll have the chance to update them. I know that nobody is going to pay me to do so.

    Stop the spam. Please.

    You need to let us control our own websites. We are not grandma running windows 10 ok?

    Thread Starter reidbusi

    (@reidbusi)

    Note, all the sites sending this update nag spam are running WP 4.4.4

    Thread Starter reidbusi

    (@reidbusi)

    And now I am getting emails from clients where we have them set as the admin email on the site.

    This “we know better than you” code is beginning to seriously damage my calm.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Disable Update Nag Emails?’ is closed to new replies.