Definition:
function find_core_update( $version, $locale ) {}
Parameters
- $version
- $locale
Source code
function find_core_update( $version, $locale ) {
$from_api = get_site_transient( 'update_core' );
if ( !is_array( $from_api->updates ) ) return false;
$updates = $from_api->updates;
foreach($updates as $update) {
if ( $update->current == $version && $update->locale == $locale )
return $update;
}
return false;
}
1070

February 11, 2011 


No comments yet... Be the first to leave a reply!