// A simple set of functions to check our version 1.0 update service
functionwp_version_check(){
global$wp_version;
$php_version=phpversion();
$current=get_option('update_core');
$locale=get_locale();
if(
isset($current->last_checked)&&
43200>(time()-$current->last_checked)&&
$current->version_checked==$wp_version
)
returnfalse;
$new_option='';
$new_option->last_checked=time();// this gets set whether we get a response or not, so if something is down or misconfigured it won't delay the page load for more than 3 seconds, twice a day