From 1c7f917731c98fdff571ee9b4ca0fdb95ebf6a96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Droz?= Date: Wed, 11 Jul 2018 21:54:27 -0300 Subject: [PATCH] support value passed to --with_attachments (fix #40) --- src/Export_Command.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Export_Command.php b/src/Export_Command.php index f3f7770c5..6c931ddde 100644 --- a/src/Export_Command.php +++ b/src/Export_Command.php @@ -155,6 +155,7 @@ public function __invoke( $_, $assoc_args ) { 'with_attachments', $defaults['with_attachments'] ); + $this->export_args['with_attachments'] = preg_match('/^(?:y|yes|1|true)$/i', (string)$this->export_args['with_attachments']); // nb: (string)TRUE === "1" if ( !function_exists( 'wp_export' ) ) { self::load_export_api();