wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.
_maybe_update_core › WordPress Function
Od2.8.0
Przestarzałyn/a
› _maybe_update_core ( Brak parametrów )
Zdefiniowane na: |
|
Codex: |
Determines whether core should be updated.
Powiązane Funkcje: _maybe_update_themes, update_core, wp_update_core, _maybe_update_plugins, wp_maybe_update_user_counts
Źródło
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(); }