diff --git a/php/class-wp-cli.php b/php/class-wp-cli.php index a6bac2c0..5d45db91 100644 --- a/php/class-wp-cli.php +++ b/php/class-wp-cli.php @@ -503,6 +503,11 @@ public function swap_coauthors( $args, $assoc_args ) { } } + // In dry mode, we must manually advance the page + if ( $dry ) { + $query_args['paged']++; + } + $this->stop_the_insanity(); $posts = new WP_Query( $query_args );