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:
Ryan Boren
2008-11-04 17:12:03 +00:00
parent c3f6773b5b
commit d09db8dc26
2 changed files with 14 additions and 5 deletions
+5 -1
View File
@@ -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' );