WordPress.org

Make WordPress Core

Ticket #52135: 52135.1.diff

File 52135.1.diff, 758 bytes (added by maxpertici, 11 months ago)

update the test_wp_version_check_attached() function class-wp-site-health-auto-updates.php.

  • src/wp-admin/includes/class-wp-site-health-auto-updates.php

    diff --git a/src/wp-admin/includes/class-wp-site-health-auto-updates.php b/src/wp-admin/includes/class-wp-site-health-auto-updates.php
    index de5166f4f3..65425bd2e6 100644
    a b class WP_Site_Health_Auto_Updates { 
    9090         * @return array The test results.
    9191         */
    9292        public function test_wp_version_check_attached() {
    93                 if ( ! has_filter( 'wp_version_check', 'wp_version_check' ) ) {
     93                if ( ( ! is_multisite() || ( is_main_site() && is_network_admin() ) ) && ! has_filter( 'wp_version_check', 'wp_version_check' ) ) {
    9494                        return array(
    9595                                'description' => sprintf(
    9696                                        /* translators: %s: Name of the filter used. */