Delete update_plugins when plugins are deleted. Props thinlight. fixes #8451

git-svn-id: https://develop.svn.wordpress.org/trunk@10038 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-12-04 18:39:11 +00:00
parent 54baf9f3f6
commit 85bb38adc9
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}