Skip to content

Commit 5de6e1b

Browse files
Forward status when forcing regeneration
1 parent b5d3223 commit 5de6e1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Integrations/POSCatalog/AsyncGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function force_regeneration( ?array $args = null ): array {
187187

188188
// If there is no option, there is nothing to force.
189189
if ( false === $status ) {
190-
return $this->get_status();
190+
return $this->get_status( $args );
191191
}
192192

193193
switch ( $status['state'] ?? '' ) {
@@ -203,7 +203,7 @@ public function force_regeneration( ?array $args = null ): array {
203203
// Delete the existing file, clear the option and let generation start again.
204204
wp_delete_file( $status['path'] );
205205
delete_option( $option_key );
206-
return $this->get_status();
206+
return $this->get_status( $args );
207207

208208
default:
209209
throw new \Exception( 'Unknown feed generation state.' );

0 commit comments

Comments
 (0)