Skip to content

Commit 7cb4261

Browse files
committed
merge in 1.12.1
1 parent 1e50c6e commit 7cb4261

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

inc/wp-cli.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,11 @@ public function import( $args, $assoc_args ) {
5757
}
5858

5959
if ( 'post_type' === $this->type ) {
60-
$this->data['cptui_post_import'] = $json;
60+
$this->data['cptui_post_import'] = json_decode( stripslashes_deep( trim( $json ) ), true );
6161
}
6262

6363
if ( 'taxonomy' === $this->type ) {
64-
$this->data['cptui_tax_import'] = $json;
64+
$this->data['cptui_tax_import'] = json_decode( stripslashes_deep( trim( $json ) ), true );
6565
}
6666

6767
$result = cptui_import_types_taxes_settings( $this->data );

0 commit comments

Comments
 (0)