Summery Summery
Test if wp_version_check
is blocked.
Syntax Syntax
Description Description
It’s possible to block updates with the wp_version_check
filter, but this can’t be checked during an AJAX call, as the filter is never introduced then.
This filter overrides a normal page request if it’s made by an admin through the AJAX call with the right query argument to check for this.
Source Source
File: wp-admin/includes/class-wp-site-health.php
* with the right query argument to check for this. * * @since 5.2.0 */ public function check_wp_version_check_exists() { if ( ! is_admin() || ! is_user_logged_in() || ! current_user_can( 'update_core' ) || ! isset( $_GET['health-check-test-wp_version_check'] ) ) { return; }
Advertisement
Changelog Changelog
Version | Description |
---|---|
5.2.0 | Introduced. |