'message' =>
__( 'The loopback request to your site completed successfully.'
),
);
} /**
* Creates a weekly cron event, if one does not already exist.
*
* @since 5.4.0
*/
public function maybe_create_scheduled_event() { if ( !
wp_next_scheduled( 'wp_site_health_scheduled_check'
) && !
wp_installing() ) { wp_schedule_event( time() + DAY_IN_SECONDS, 'weekly', 'wp_site_health_scheduled_check'
);
} } /**
* Runs the scheduled event to check and update the latest site health status for the website.
*
* @since 5.4.0
*/
public function wp_cron_scheduled_check() { // Bootstrap wp-admin, as WP_Cron doesn't do this for us.
require_once trailingslashit( ABSPATH
) . 'wp-admin/includes/admin.php';