Update includes/class-scheduler.php

Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
Matthias Pfefferle 2023-05-10 18:47:46 +02:00 committed by GitHub
parent 3c02744925
commit 6fce2c30d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,7 +124,7 @@ class Scheduler {
if ( is_tombstone( $meta ) ) {
$follower->delete();
} elseif ( empty( $meta ) || ! is_array( $meta ) || is_wp_error( $meta ) ) {
if ( 5 >= $follower->count_errors() ) {
if ( 5 <= $follower->count_errors() ) {
$follower->delete();
} else {
$follower->set_error( $meta );