• Resolved Jos Klever

    (@josklever)


    Hi,

    On some websites I maintain, I see a notification about auto updates with the suggestion to enable it:
    “We zien dat je automatische updates voor WordPress hebt ingeschakeld. We raden je aan dit ook voor Yoast SEO te doen. Op deze manier kunnen we garanderen dat WordPress en Yoast SEO samen goed blijven draaien. Ga naar je plugins overzicht voor inschakelen van auto-updates voor Yoast SEO .”

    However, I’ve disabled automatic updates on all sites, because they are managed from a centralized dashboard. For that I’ve got a mu-plugin with the following filters:

    /** Disable the possibility to enable automatic updates (WP 5.5) */
    add_filter( 'plugins_auto_update_enabled', '__return_false' );
    add_filter( 'themes_auto_update_enabled', '__return_false' );
    
    /** Disable the possibility to enable automatic updates for WP core (WP 5.6) */
    add_filter( 'allow_major_auto_core_updates', '__return_false' );

    So I was wondering why the notification is still shown in Yoast SEO.
    I’ve found the filter:
    add_filter( 'wpseo_update_notice_content', '__return_null' );
    but it shouldn’t be necessary to run it, as the analysis is wrong in the first place. Can you tell me what to check (file or database) where the check gets it’s information from?

    Not all sites running Yoast SEO have this issue, all are fully updated (daily) to the latest versions.

    Thanks,
    Jos Klever
    Web Support

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Jos,

    Thanks for reaching out regarding the auto-updates notification.

    The filter add_filter( 'wpseo_update_notice_content', '__return_null' ); is supposed to prevent the notifications from appearing in your dashboard; this should be added to your functions.php file. Have you tried it?

    You mentioned that using the filter should not be necessary as the analysis is wrong. Well, we believe it’s important to keep users posted on the changes in the plugin. As such, you can’t hide the notifications “forever” as you have suggested. The notification is a friendly reminder to keep yourself updated.

    Thread Starter Jos Klever

    (@josklever)

    Hi @maybellyne ,

    I haven’t tried to add the filter, because (as I said) it’s working fine on most sites, but on one (or some) it isn’t. So I want to know why it’s shown, while auto-updates are disabled on every site.

    In your last paragraph you seem to mix up a few things. I’m talking about the auto-updates notification and not about available updates (they are shown on Updates and Plugins page) or about information about a new functionality.

    If you have no idea where this check gets it’s info from, please ask a colleague or the dev team, because this is a bug and not just a cosmetic thing.

    Hey Jos!

    Thank you for your reply and explanation.

    I went ahead and did some checks on our code specifically for this notification, and it turns out we do check if major updates are enabled or disabled by checking the option auto_update_core_major – when that option is set to enabled, the notification would be shown.

    Could you please have a look if this is the case for the sites you are having this experience?

    Thanks!

    Thread Starter Jos Klever

    (@josklever)

    Hi Jeroen!

    Thanks for that option. I’ve checked it on a couple of sites and if it’s enabled in the wp_options table Yoast SEO is showing the notice. If it’s set to unset the notice is gone. So I’ve run a script to “unset” it on all sites I maintain, that had it “enabled”, as I’m doing the updates manually when the time is right for me.

    The notice is gone on all sites now.

    The only thing to do is for your dev team to improve the way the notice is shown if filter is set that disables the functionality to enable auto updates, like in my original post.

    I’ll leave that for you as an internal issue. So I’ll close this topic as resolved.

    Thanks again!
    Jos

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Notification about auto update is wrong’ is closed to new replies.