Skip to content

Commit

Permalink
Seek to the cursor in import_entities_step
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed Nov 19, 2024
1 parent 86aef75 commit 5dd3237
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ public function import_entities_step() {
$factory = $this->entity_iterator_factory;
$this->entities_iterator = $factory();
$this->importer = new WP_Entity_Importer();
// @TODO: Seek to the last processed entity if we have a cursor.
if( $this->entities_cursor ) {
$this->entities_iterator->resume( $this->entities_cursor );
}
}

if ( ! $this->entities_iterator->valid() ) {
Expand Down

0 comments on commit 5dd3237

Please sign in to comment.