WordPress开发者和主题制作者的搜索引擎



_maybe_update_core ›

Since2.8.0
已弃用n/a
_maybe_update_core ( 没有参数 )
定义在:
文档:

Determines whether core should be updated.



源码

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();
}