Skip to content

Commit 01cec04

Browse files
committed
Merge branch 'trunk' into fix-forum-17945942
2 parents f84d780 + 9c7b8ed commit 01cec04

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

classes/abstracts/ActionScheduler_Store.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,12 @@ public function get_status_labels() {
468468
public function has_pending_actions_due() {
469469
$pending_actions = $this->query_actions(
470470
array(
471-
'date' => as_get_datetime_object(),
472-
'status' => self::STATUS_PENDING,
473-
'orderby' => 'none',
474-
)
471+
'per_page' => 1,
472+
'date' => as_get_datetime_object(),
473+
'status' => self::STATUS_PENDING,
474+
'orderby' => 'none',
475+
),
476+
'count'
475477
);
476478

477479
return ! empty( $pending_actions );

0 commit comments

Comments
 (0)