diff --git a/composer.json b/composer.json index 5de639c2..ada185bf 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ } ], "require": { - "wp-cli/wp-cli": "^2.12" + "wp-cli/wp-cli": "^2.13" }, "require-dev": { "wp-cli/entity-command": "^1.3 || ^2", diff --git a/src/Rewrite_Command.php b/src/Rewrite_Command.php index e0167d9c..68d01dc6 100644 --- a/src/Rewrite_Command.php +++ b/src/Rewrite_Command.php @@ -164,14 +164,7 @@ public function structure( $args, $assoc_args ) { } } - /** - * @var object{stdout: string, stderr: string, return_code: int} $process_run - */ - $process_run = WP_CLI::runcommand( $cmd ); - if ( ! empty( $process_run->stderr ) ) { - // Strip "Warning: " - WP_CLI::warning( substr( $process_run->stderr, 9 ) ); - } + WP_CLI::runcommand( $cmd ); } /**