Fix display of plugin update messages after bulk ops. Props DD32. fixes #9303
git-svn-id: https://develop.svn.wordpress.org/trunk@11207 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6e189c365e
commit
5a250e36ff
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user