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:
parent
18e6d80bc1
commit
f6402b713a
|
@ -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