mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Fix core update checking. Don't check on every page load.
git-svn-id: https://develop.svn.wordpress.org/trunk@9512 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,7 +77,11 @@ function wp_version_check() {
|
||||
$new_options[] = $new_option;
|
||||
}
|
||||
|
||||
update_option( 'update_core', $new_options );
|
||||
$updates = new stdClass();
|
||||
$updates->updates = $new_options;
|
||||
$updates->last_checked = time();
|
||||
$updates->version_checked = $wp_version;
|
||||
update_option( 'update_core', $updates);
|
||||
}
|
||||
add_action( 'init', 'wp_version_check' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user