Site Health: Rename WP_Site_Health::initialize() introduced in [47063] to ::get_instance(), for clarity and consistency with other core classes.
Use `WP_Site_Health::get_instance()` where it's needed, instead of creating multiple instances of the class. Props afercia, xkon, Clorith, SergeyBiryukov. See #47606. Built from https://develop.svn.wordpress.org/trunk@47149 git-svn-id: http://core.svn.wordpress.org/trunk@46949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -355,7 +355,7 @@ if ( ! is_multisite() ) {
|
||||
if ( ! class_exists( 'WP_Site_Health' ) ) {
|
||||
require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
|
||||
}
|
||||
WP_Site_Health::initialize();
|
||||
WP_Site_Health::get_instance();
|
||||
|
||||
// Load active plugins.
|
||||
foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
|
||||
|
||||
Reference in New Issue
Block a user