Commit 4933d175 authored by Erick Hitter's avatar Erick Hitter
Browse files

Impose some upper bound on Internal Jobs

parent 9da692e3
......@@ -131,10 +131,10 @@ class Internal_Events extends Singleton {
}
}
if ( count( $missed_posts ) < $quantity ) {
$page++;
if ( count( $missed_posts ) < $quantity || $page > 5 ) {
break;
} else {
$page++;
}
} while ( ! empty( $missed_posts ) );
}
......@@ -174,10 +174,10 @@ class Internal_Events extends Singleton {
}
}
if ( count( $future_posts ) < $quantity ) {
$page++;
if ( count( $future_posts ) < $quantity || $page > 5 ) {
break;
} else {
$page++;
}
} while ( ! empty( $future_posts ) );
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment