WordPress at a glance
function is not described

_maybe_update_core() WP 2.8.0

Determines whether core should be updated.

  • Global. String. $wp_version

No Hooks.

Return

Nothing (null).

Usage

_maybe_update_core();

Code of maybe update core: wp-includes/update.php VER 5.0.3

<?php
function _maybe_update_core() {
	// include an unmodified $wp_version
	include( 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();
}