wpseek.com
A WordPress-centric search engine for devs and theme authors
_maybe_update_core › WordPress Function
Since2.8.0
Deprecatedn/a
› _maybe_update_core ( No parameters )
| Defined at: |
|
| Codex: |
Determines whether core should be updated.
Related Functions: _maybe_update_themes, update_core, wp_update_core, _maybe_update_plugins, wp_maybe_update_user_counts
Source
function _maybe_update_core() {
$current = get_site_transient( 'update_core' );
if ( isset( $current->last_checked, $current->version_checked )
&& 12 * HOUR_IN_SECONDS > ( time() - $current->last_checked )
&& wp_get_wp_version() === $current->version_checked
) {
return;
}
wp_version_check();
}