Make WordPress Core

Ticket #49824: 49824.diff

File 49824.diff, 897 bytes (added by peterwilsoncc, 3 years ago)
  • src/wp-settings.php

    diff --git a/src/wp-settings.php b/src/wp-settings.php
    index 663c7d8eb9..77bfeced23 100644
    a b  
    366366        wp_recovery_mode()->initialize();
    367367}
    368368
    369 // Create an instance of WP_Site_Health so that Cron events may fire.
    370 if ( ! class_exists( 'WP_Site_Health' ) ) {
    371         require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
    372 }
    373 WP_Site_Health::get_instance();
    374 
    375369// Load active plugins.
    376370foreach ( wp_get_active_and_valid_plugins() as $plugin ) {
    377371        wp_register_plugin_realpath( $plugin );
     
    524518 */
    525519do_action( 'after_setup_theme' );
    526520
     521// Create an instance of WP_Site_Health so that Cron events may fire.
     522if ( ! class_exists( 'WP_Site_Health' ) ) {
     523        require_once ABSPATH . 'wp-admin/includes/class-wp-site-health.php';
     524}
     525WP_Site_Health::get_instance();
     526
    527527// Set up current user.
    528528$GLOBALS['wp']->init();
    529529