A WordPress-centric search engine for devs and theme authors



_maybe_update_core ›

Since2.8.0
Deprecatedn/a
_maybe_update_core ( No parameters )
Defined at:
Codex:

Determines whether core should be updated.



Source

function _maybe_update_core() {
	// Include an unmodified $wp_version.
	require ABSPATH . WPINC . '/version.php';

	$current = get_site_transient( 'update_core' );

	if ( isset( $current->last_checked, $current->version_checked )
		&& 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked )
		&& $current->version_checked === $wp_version
	) {
		return;
	}

	wp_version_check();
}