diff --git a/classes/abstracts/ActionScheduler_Store.php b/classes/abstracts/ActionScheduler_Store.php index a5b52ff6..c89f6dbc 100644 --- a/classes/abstracts/ActionScheduler_Store.php +++ b/classes/abstracts/ActionScheduler_Store.php @@ -468,10 +468,12 @@ public function get_status_labels() { public function has_pending_actions_due() { $pending_actions = $this->query_actions( array( - 'date' => as_get_datetime_object(), - 'status' => self::STATUS_PENDING, - 'orderby' => 'none', - ) + 'per_page' => 1, + 'date' => as_get_datetime_object(), + 'status' => self::STATUS_PENDING, + 'orderby' => 'none', + ), + 'count' ); return ! empty( $pending_actions );