[wp-trac] [WordPress Trac] #52135: False positive on `WP_Site_Health_Auto_Updates`
WordPress Trac
noreply at wordpress.org
Tue Dec 22 04:41:46 UTC 2020
#52135: False positive on `WP_Site_Health_Auto_Updates`
--------------------------+------------------------
Reporter: audrasjb | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.6.1
Component: Site Health | Version: 5.6
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
--------------------------+------------------------
Changes (by SergeyBiryukov):
* focuses: => multisite
Comment:
Thanks for the report!
> The issue only occurs on Multisite installations, and doesn't appear on
the main site of the network, only on other ones.
As noted in the thread, this was introduced with the `! has_filter(
'wp_version_check', 'wp_version_check' )` in [49154].
`wp-includes/update.php` does set up the action, but only for the main
site:
{{{
if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) {
return;
}
add_action( 'wp_version_check', 'wp_version_check' );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52135#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list