Make WordPress Core


Ignore:
Timestamp:
02/01/2020 12:37:14 AM (7 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/includes/dashboard.php

    r47122 r47149  
    4949                }
    5050
    51                 WP_Site_Health::initialize();
     51                WP_Site_Health::get_instance();
    5252
    5353                wp_enqueue_style( 'site-health' );
Note: See TracChangeset for help on using the changeset viewer.