From 091f898f9925453f6d85bd8bfb53bd794a485827 Mon Sep 17 00:00:00 2001 From: Caleb Stauffer Date: Thu, 1 Aug 2024 11:13:32 -0400 Subject: [PATCH] save --- classes/ActionScheduler_QueueRunner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/ActionScheduler_QueueRunner.php b/classes/ActionScheduler_QueueRunner.php index 90e64fc46..53254b6cb 100644 --- a/classes/ActionScheduler_QueueRunner.php +++ b/classes/ActionScheduler_QueueRunner.php @@ -134,8 +134,8 @@ public function run( $context = 'WP Cron' ) { $this->processed_actions_count = 0; if ( false === $this->has_maximum_concurrent_batches() ) { - $batch_size = apply_filters( 'action_scheduler_queue_runner_batch_size', 25 ); do { + $batch_size = apply_filters( 'action_scheduler_queue_runner_batch_size', 25 ); $processed_actions_in_batch = $this->do_batch( $batch_size, $context ); $this->processed_actions_count += $processed_actions_in_batch; } while ( $processed_actions_in_batch > 0 && ! $this->batch_limits_exceeded( $this->processed_actions_count ) ); // keep going until we run out of actions, time, or memory