Make WordPress Core


Ignore:
Timestamp:
02/01/2020 12:37:14 AM (5 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-admin/site-health.php

    r46586 r47149  
    2828}
    2929
    30 $health_check_site_status = new WP_Site_Health();
     30$health_check_site_status = WP_Site_Health::get_instance();
    3131
    3232// Start by checking if this is a special request checking for the existence of certain filters.
Note: See TracChangeset for help on using the changeset viewer.