wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
_maybe_update_core › WordPress Function
Da2.8.0
Deprecaton/a
› _maybe_update_core ( Nessun parametro )
Definito a: |
|
Codex: |
Determines whether core should be updated.
Funzioni correlate: _maybe_update_themes, update_core, wp_update_core, _maybe_update_plugins, wp_maybe_update_user_counts
Sorgenti
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(); }