[wp-trac] [WordPress Trac] #47084: Site Health instructs users to remove plugins that are active on other sites in network

WordPress Trac noreply at wordpress.org
Tue Apr 30 22:59:38 UTC 2019


#47084: Site Health instructs users to remove plugins that are active on other
sites in network
--------------------------------+----------------------------------------
 Reporter:  iandunn             |       Owner:  (none)
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  5.2
Component:  Administration      |     Version:  trunk
 Severity:  normal              |  Resolution:
 Keywords:  site-health commit  |     Focuses:  administration, multisite
--------------------------------+----------------------------------------

Comment (by azaozz):

 Another place an `! is_multisite()` is probably needed is for
 `check_wp_version_check_exists()`. It looks for the presence of the
 `'wp_version_check'` hook but it is not present when on multisite and not
 on the default site (it's never added there by design). See at the bottom
 of [https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/update.php#L801 wp-includes/update.php]:
 {{{
 if ( ( ! is_main_site() && ! is_network_admin() ) || wp_doing_ajax() ) {
         return;
 }

 add_action( 'admin_init', '_maybe_update_core' );
 add_action( 'wp_version_check', 'wp_version_check' );
 ...
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47084#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list