WordPress.org

Make WordPress Core

Changeset 50035


Ignore:
Timestamp:
01/27/2021 11:25:55 PM (10 months ago)
Author:
whyisjake
Message:

Site Health: Only run the version checks on the main site.

The version checks that are setup in wp-includes/update.php do set up the action, but only for the main site.

Fixes #52135.

Props audrasjb, SergeyBiryukov, maxpertici, aaribaud.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r49984 r50035  
    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(
Note: See TracChangeset for help on using the changeset viewer.