diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index fbb690e0aa..92b46c51e1 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -426,9 +426,12 @@ function delete_plugins($plugins, $redirect = '' ) { $errors[] = $plugin_file; } - if( ! empty($errors) ) + if ( ! empty($errors) ) 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_option('update_plugins'); + return true; }