Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iuravic committed Apr 2, 2024
2 parents d114c45 + 1578e12 commit 8c8caef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/General/ContentDiffMigrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function register_commands() {
[
'type' => 'assoc',
'name' => 'post-types-csv',
'description' => 'CSV of all the post types to scan, no extra spaces. E.g. --post-types-csv=post,page,attachment,some_cpt. Default value is post,page,attachment.',
'description' => 'CSV of all the post types to scan, no extra spaces. E.g. --post-types-csv=post,page,attachment,some_cpt. Default value is post,attachment.',
'optional' => true,
'repeating' => false,
],
Expand Down Expand Up @@ -380,7 +380,7 @@ public function cmd_update_feat_images_ids( $pos_args, $assoc_args ) {
public function cmd_search_new_content_on_live( $args, $assoc_args ) {
$export_dir = $assoc_args['export-dir'] ?? false;
$live_table_prefix = $assoc_args['live-table-prefix'] ?? false;
$post_types = isset( $assoc_args['post-types-csv'] ) ? explode( ',', $assoc_args['post-types-csv'] ) : [ 'post', 'page', 'attachment' ];
$post_types = isset( $assoc_args['post-types-csv'] ) ? explode( ',', $assoc_args['post-types-csv'] ) : [ 'post', 'attachment' ];

global $wpdb;
try {
Expand Down

0 comments on commit 8c8caef

Please sign in to comment.