function wpupdate_cron()
{
    include 'includes/wp-update-class.php';
    include 'includes/wp-update-functions.php';
    $wpupdate = new WP_Update();
    $plugins = wpupdate_get_plugins();
    foreach ((array) $plugins as $plugin_file => $plugin_info) {
        $result = $wpupdate->checkPluginUpdate($plugin_file, false, false);
        if (is_array($result['Errors']) && in_array('Not Cached', $result['Errors'])) {
            //We want to force an update on this item
            $result = $wpupdate->checkPluginUpdate($plugin_file, true, true);
        }
    }
    //Now that we've updated every plugins details, we want to update the notices, this will also have the effect of sending the email if theres new updates.
    $wpupdate->updateNotifications();
}
 if (is_writable(ABSPATH . PLUGINDIR . '/' . $plugin_file) && current_user_can('edit_plugins')) {
     $edit = "<a href='plugin-editor.php?file={$plugin_file}' title='" . __('Open this file in the Plugin Editor') . "' class='edit'>" . __('Edit') . "</a>";
 } else {
     $edit = '';
 }
 if (current_user_can('edit_plugins')) {
     $forceupdate = '<a href="#" onclick="checkUpdate(\'' . $plugin_file . '\'); return false;" title="' . __('Check for Plugin Update') . '" class="edit">' . __('Check for Update') . '</a>';
 } else {
     $forceupdate = '';
 }
 $updateText = '';
 if (!get_option('update_notification_enable')) {
     $updateText = __('Not Checked');
 } else {
     //Check if the plugin is disabled:
     $updateStat = $wp_update->checkPluginUpdate($plugin_file, false, false);
     if (!get_option('update_check_inactive') && !in_array($plugin_file, $current_plugins) && !(isset($updateStat['Update']) || isset($updateStat['Errors']) && in_array('Not Found', $updateStat['Errors']))) {
         //Plugin is disabled, and set to not check inactive plugins
         $updateText = __('Not Checked');
     } else {
         $updateText = $wp_update->getPluginUpdateText($plugin_file);
         if (false !== $updateText) {
             $updateText = __($updateText);
         } else {
             $updateText = __('Please Wait');
             $updateText .= "<script type='text/javascript'>checkUpdate('{$plugin_file}');</script>";
         }
     }
 }
 echo "\r\n\t<tr {$style}>\r\n\t\t<td class='name'>{$plugin_data['Title']}</td>\r\n\t\t<td class='vers'>{$plugin_data['Version']}</td>\r\n\t\t<td class='vers' id='wpupdate-" . str_replace(array('/', '.'), '', $plugin_file) . "'>{$updateText}</td>\r\n\t\t<td class='desc'><p>{$plugin_data['Description']} <cite>" . sprintf(__('By %s'), $plugin_data['Author']) . ".</cite></p></td>\r\n\t\t<td class='togl'>{$toggle}</td>";
 if (current_user_can('edit_plugins')) {