Skip to content

Commit

Permalink
Merge branch 'feature/add-export-command' into feature/detect-classic…
Browse files Browse the repository at this point in the history
…-editor-posts
  • Loading branch information
dsawardekar committed May 8, 2024
2 parents 0496718 + 144dc51 commit 8eaa409
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/classes/CatalogCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ public function export( $args = [], $opts = [] ) {

if ( is_wp_error( $result ) ) {
\WP_CLI::error( $result->get_error_message() );
} elseif ( ! $result['success'] ) {
\WP_CLI::error( $result['message'] );
} else {
\WP_CLI::success( $result['message'] );
}
Expand Down

0 comments on commit 8eaa409

Please sign in to comment.