Uses
| Uses | Description | 
|---|---|
| wp-includes/option.php: get_site_transient() | Retrieves the value of a site transient. | 
Finds the available update for WordPress core.
(string) (Required) Version string to find the update for.
(string) (Required) Locale to find the update for.
(object|false) The core update offering on success, false on failure.
File: wp-admin/includes/update.php
function find_core_update( $version, $locale ) {
	$from_api = get_site_transient( 'update_core' );
	if ( ! isset( $from_api->updates ) || ! is_array( $from_api->updates ) ) {
		return false;
	}
	$updates = $from_api->updates;
	foreach ( $updates as $update ) {
		if ( $update->current == $version && $update->locale == $locale ) {
			return $update;
		}
	}
	return false;
}  | Version | Description | 
|---|---|
| 2.7.0 | Introduced. | 
    © 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
    https://developer.wordpress.org/reference/functions/find_core_update