classicpress_has_update()
Source
File: wp-includes/version.php
function classicpress_has_update() {
$updates_from_api = get_site_transient( 'update_core' );
if ( empty( $updates_from_api ) ) {
return true;
} elseif ( empty( $updates_from_api->updates ) ) {
wp_version_check( array(), true );
$updates_from_api = get_site_transient( 'update_core' );
}
if ( empty( $updates_from_api->updates ) || empty( $updates_from_api->updates[0]->current ) || $updates_from_api->version_checked !== $updates_from_api->updates[0]->current ) {
return true;
}
return false;
}