diff --git a/inc/Clean.php b/inc/Clean.php index 3ab7458..bf57045 100755 --- a/inc/Clean.php +++ b/inc/Clean.php @@ -154,7 +154,11 @@ public static function after_upgrade( $upgrader, $hook_extra ) { static::core_paths(); break; case 'plugin': - static::plugin_paths( $hook_extra['plugins'] ); + if ( isset( $hook_extra['plugins'] ) ) { + static::plugin_paths( $hook_extra['plugins'] ); + } elseif ( isset( $hook_extra['plugin'] ) ) { + static::plugin_paths( array( $hook_extra['plugin'] ) ); + } break; case 'theme': static::theme_paths( $hook_extra['themes'] );