$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(); } function wpupdate_notices(){ $updates = get_option('wpupdate_notifications'); if( ! $updates ) return; foreach((array)$updates as $plugin_file => $plugin_info){ if( true == $plugin_info['HideUpdate'] ) continue; $plugins[] = $plugin_info['PluginInfo']['Name'] . ' ' . $plugin_info['PluginInfo']['Version']; } if( empty($plugins) ) return; echo '
';
printf(__('You have %d update(s) available.'),count($plugins));
echo ' ' . __('Plugin page »') . '';
echo '
';
echo implode(', ',$plugins);
echo '';
echo '' . __('Hide these updates') . '';
echo '