From bfb37aa2ed5e74e773b568cf237b872839c75279 Mon Sep 17 00:00:00 2001 From: scribu Date: Mon, 7 Oct 2013 14:29:32 +0200 Subject: [PATCH] fix delete logic after plugin refactoring see c4f01fa50a40ab6624c84aeb9d1d9746f45f4118 props francescolaffi --- php/commands/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/commands/plugin.php b/php/commands/plugin.php index 54fd8dfb..b0c81608 100644 --- a/php/commands/plugin.php +++ b/php/commands/plugin.php @@ -596,7 +596,7 @@ class Plugin_Command extends \WP_CLI\CommandWithUpgrade { private function _delete( $plugin ) { $plugin_dir = dirname( $plugin->file ); if ( '.' == $plugin_dir ) - $plugin_dir = $file; + $plugin_dir = $plugin->file; $command = 'rm -rf ' . path_join( WP_PLUGIN_DIR, $plugin_dir ); -- 2.11.0