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

git-svn-id: http://svn.automattic.com/wordpress/trunk@10038 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-12-04 18:39:11 +00:00
parent 302fd9f7bd
commit fd5a7d8a18
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;
}