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();