Fix display of plugin update messages after bulk ops. Props DD32. fixes #9303

git-svn-id: http://svn.automattic.com/wordpress/trunk@11207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2009-05-05 20:48:46 +00:00
parent 18e6d80bc1
commit f6402b713a
1 changed files with 4 additions and 1 deletions

View File

@ -468,7 +468,10 @@ function delete_plugins($plugins, $redirect = '' ) {
return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s'), implode(', ', $errors)) );
// Force refresh of plugin update information
delete_transient('update_plugins');
if ( $current = get_transient('update_plugins') ) {
unset( $current->response[ $plugin_file ] );
set_transient('update_plugins', $current);
}
return true;
}