Skip to content

Commit

Permalink
Merge pull request #169 from cjhaas/cjhaas-php81-null-to-explode
Browse files Browse the repository at this point in the history
  • Loading branch information
schlessera authored Oct 17, 2022
2 parents afb790c + f5bad04 commit f1a8a1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Search_Replace_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ public function __invoke( $args, $assoc_args ) {
}
}

$this->skip_columns = explode( ',', Utils\get_flag_value( $assoc_args, 'skip-columns' ) );
$this->skip_tables = explode( ',', Utils\get_flag_value( $assoc_args, 'skip-tables' ) );
$this->include_columns = array_filter( explode( ',', Utils\get_flag_value( $assoc_args, 'include-columns' ) ) );
$this->skip_columns = explode( ',', Utils\get_flag_value( $assoc_args, 'skip-columns', '' ) );
$this->skip_tables = explode( ',', Utils\get_flag_value( $assoc_args, 'skip-tables', '' ) );
$this->include_columns = array_filter( explode( ',', Utils\get_flag_value( $assoc_args, 'include-columns', '' ) ) );

if ( $old === $new && ! $this->regex ) {
WP_CLI::warning( "Replacement value '{$old}' is identical to search value '{$new}'. Skipping operation." );
Expand Down

0 comments on commit f1a8a1d

Please sign in to comment.