Uses
Uses | Description |
---|---|
wp-includes/update.php: wp_version_check() | Check WordPress version against the newest version. |
wp-includes/option.php: get_site_transient() | Retrieves the value of a site transient. |
Determines whether core should be updated.
File: wp-includes/update.php
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(); }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/_maybe_update_core