Make WordPress Core

Changeset 45049


Ignore:
Timestamp:
03/28/2019 02:30:12 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Site Health: Correct wp_version_check() existence verification by performing a request to the Site Health page instead of Dashboard.

Props Clorith, audrasjb.
Fixes #46616.

Location:
trunk/src/wp-admin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-site-health-auto-updates.php

    r44986 r45049  
    102102                'health-check-test-wp_version_check' => true,
    103103            ),
    104             admin_url()
     104            admin_url( 'site-health.php' )
    105105        );
    106106
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r44986 r45049  
    2828    public function __construct() {
    2929        $this->prepare_sql_data();
    30 
    31         add_action( 'wp_loaded', array( $this, 'check_wp_version_check_exists' ) );
    3230
    3331        add_filter( 'admin_body_class', array( $this, 'admin_body_class' ) );
  • trunk/src/wp-admin/site-health.php

    r45041 r45049  
    2727
    2828$health_check_site_status = new WP_Site_Health();
     29
     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();
    2932
    3033require_once( ABSPATH . 'wp-admin/admin-header.php' );
Note: See TracChangeset for help on using the changeset viewer.