WordPress at Your Fingertips
function is not described

WP_Site_Health_Auto_Updates::test_accepts_minor_updates() public WP 5.2.0

Check if the site supports automatic minor updates.

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

Hooks from the method

Return

Array. The test results.

Usage

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

Changelog

Since 5.2.0 Introduced.

Code of WP_Site_Health_Auto_Updates::test_accepts_minor_updates() WP 5.8.2

function test_accepts_minor_updates() {
	if ( defined( 'WP_AUTO_UPDATE_CORE' ) && false === WP_AUTO_UPDATE_CORE ) {
		return array(
			'description' => sprintf(
				/* translators: %s: Name of the constant used. */
				__( 'WordPress security and maintenance releases are blocked by %s.' ),
				"<code>define( 'WP_AUTO_UPDATE_CORE', false );</code>"
			),
			'severity'    => 'fail',
		);
	}

	/** This filter is documented in wp-admin/includes/class-core-upgrader.php */
	if ( ! apply_filters( 'allow_minor_auto_core_updates', true ) ) {
		return array(
			'description' => sprintf(
				/* translators: %s: Name of the filter used. */
				__( 'WordPress security and maintenance releases are blocked by the %s filter.' ),
				'<code>allow_minor_auto_core_updates</code>'
			),
			'severity'    => 'fail',
		);
	}
}