Skip to content

Commit dc88301

Browse files
committed
Missed null check in wc_load_webhooks
1 parent 387b204 commit dc88301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/wc-webhook-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function wc_load_webhooks( $status = '', $limit = null ) {
143143
$webhook->enqueue();
144144
$loaded ++;
145145

146-
if ( $loaded >= $limit ) {
146+
if ( ! is_null( $limit ) && $loaded >= $limit ) {
147147
break;
148148
}
149149
}

0 commit comments

Comments
 (0)