WordPress.org

Make WordPress Core

Ticket #46616: 46616.patch

File 46616.patch, 1.7 KB (added by Clorith, 5 months ago)
  • src/wp-admin/includes/class-wp-site-health.php

     
    2828        public function __construct() {
    2929                $this->prepare_sql_data();
    3030
    31                 add_action( 'wp_loaded', array( $this, 'check_wp_version_check_exists' ) );
    32 
    3331                add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
    3432
    3533                add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_scripts' ) );
  • src/wp-admin/site-health.php

     
    2727
    2828$health_check_site_status = new WP_Site_Health();
    2929
     30// Start by checking if this is a special request checking for the existence of certain filters.
     31$health_check_site_status->check_wp_version_check_exists();
     32
    3033require_once( ABSPATH . 'wp-admin/admin-header.php' );
    3134?>
    3235
  • src/wp-admin/includes/class-wp-site-health-auto-updates.php

     
    101101                        array(
    102102                                'health-check-test-wp_version_check' => true,
    103103                        ),
    104                         admin_url()
     104                        admin_url( 'site-health.php' )
    105105                );
    106106
    107107                $test = wp_remote_get( $url, compact( 'cookies', 'headers', 'timeout' ) );