WordPress at Your Fingertips
function is not described

WP_Site_Health_Auto_Updates::test_wp_version_check_attached() public WP 5.2.0

Check if updates are intercepted by a filter.

{} It's a method of the class: WP_Site_Health_Auto_Updates{}

No Hooks.

Return

Array. The test results.

Usage

$WP_Site_Health_Auto_Updates = new WP_Site_Health_Auto_Updates();
$WP_Site_Health_Auto_Updates->test_wp_version_check_attached();

Changelog

Since 5.2.0 Introduced.

Code of WP_Site_Health_Auto_Updates::test_wp_version_check_attached() WP 5.8.2

public function test_wp_version_check_attached() {
	if ( ( ! is_multisite() || is_main_site() && is_network_admin() )
		&& ! has_filter( 'wp_version_check', 'wp_version_check' )
	) {
		return array(
			'description' => sprintf(
				/* translators: %s: Name of the filter used. */
				__( 'A plugin has prevented updates by disabling %s.' ),
				'<code>wp_version_check()</code>'
			),
			'severity'    => 'fail',
		);
	}
}