Home / APIs / _maybe_update_core() – Determines whether core should be updated.

You appear to be a bot. Output may be restricted

Description

Determines whether core should be updated.

Usage

_maybe_update_core();

Parameters

Returns

void

Source

File name: wordpress/wp-includes/update.php
Lines: 1 to 13 of 13

function _maybe_update_core() {
  // include an unmodified $wp_version
  include( 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();
}
 

 View on GitHub View on Trac

Published: 10th March 2017 | Last updated: 10th March 2017

Information

Function name: _maybe_update_core
Plugin ref: WordPress
Version: 5.0.3
Sourcefile: wp-includes/update.php
File ref: wp-includes/update.php
API type: private
Deprecated?: No
API Letters: _,C,M,U

  • Plugins
  • Themes
  • Blocks
  • Shortcodes
  • APIs
  • Files
  • Hooks
  • Classes
  • Sites
  • Sitemap
  • Blog
WP-a2z WordPress core a2z
WordPress core only

Site:  core.wp-a2z.org
© Copyright WP-a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins