Make WordPress Core


Ignore:
Timestamp:
02/01/2020 12:37:14 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-settings.php

    r47122 r47149  
    356356    require_once( ABSPATH . 'wp-admin/includes/class-wp-site-health.php' );
    357357}
    358 WP_Site_Health::initialize();
     358WP_Site_Health::get_instance();
    359359
    360360// Load active plugins.
Note: See TracChangeset for help on using the changeset viewer.