Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion inc/cli/class-migrate-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ public function wp_authors( $args, $assoc_args ) : void {
WP_CLI::line( sprintf( 'Processed %d posts, pausing for a breath...', $count ) );
sleep( 2 );

$paged++;
// When not overwriting, or during a dry run,
// need to skip pagination due to NOT EXISTS tax query.
if ( $dry_run || $overwrite ) {
$paged++;
}
} while ( count( $posts ) );

if ( true === $dry_run ) {
Expand Down