From 0a444889a4866f7e46555838c1230dd0bf05817e Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Fri, 6 Jul 2018 14:55:47 +0200 Subject: [PATCH] Correctly pass exclude option to JsCodeExtractor --- features/makepot.feature | 4 ++++ src/MakePotCommand.php | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/features/makepot.feature b/features/makepot.feature index 097ce661..e2918635 100644 --- a/features/makepot.feature +++ b/features/makepot.feature @@ -620,6 +620,10 @@ Feature: Generate a POT file of a WordPress plugin skip_js ) { - JsCodeExtractor::fromDirectory( $this->source, $this->translations ); + JsCodeExtractor::fromDirectory( + $this->source, + $this->translations, + [ + 'exclude' => $this->exclude, + ] + ); } } catch ( \Exception $e ) { WP_CLI::error( $e->getMessage() );