| 1 | Index: wp-admin/includes/plugin.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-admin/includes/plugin.php (revision 11124) |
|---|
| 4 | +++ wp-admin/includes/plugin.php (working copy) |
|---|
| 5 | @@ -468,7 +468,10 @@ |
|---|
| 6 | return new WP_Error('could_not_remove_plugin', sprintf(__('Could not fully remove the plugin(s) %s'), implode(', ', $errors)) ); |
|---|
| 7 | |
|---|
| 8 | // Force refresh of plugin update information |
|---|
| 9 | - delete_transient('update_plugins'); |
|---|
| 10 | + if ( $current = get_transient('update_plugins') ) { |
|---|
| 11 | + unset( $current->response[ $plugin_file ] ); |
|---|
| 12 | + set_transient('update_plugins', $current); |
|---|
| 13 | + } |
|---|
| 14 | |
|---|
| 15 | return true; |
|---|
| 16 | } |
|---|