mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
302fd9f7bd
commit
fd5a7d8a18
@ -426,9 +426,12 @@ function delete_plugins($plugins, $redirect = '' ) {
|
|||||||
$errors[] = $plugin_file;
|
$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)) );
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user