WordPress.org

Make WordPress Core

Changeset 50036


Ignore:
Timestamp:
01/27/2021 11:30:06 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.

This brings the changes in [50035] to the 5.6 branch.

Fixes #52135.

Props audrasjb, SergeyBiryukov, maxpertici, aaribaud.

Location:
branches/5.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.6

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

    r49292 r50036  
    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.