mirror of
git://develop.git.wordpress.org/
synced 2025-02-24 08:33:35 +01:00
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:
parent
54baf9f3f6
commit
85bb38adc9
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user