Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
9c3a0928
Verified
Commit
9c3a0928
authored
Nov 18, 2016
by
Erick Hitter
Browse files
Prevent cron rebuilding from running forever
parent
4f378557
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-cron-options-cpt.php
View file @
9c3a0928
...
...
@@ -89,6 +89,12 @@ class Cron_Options_CPT extends Singleton {
$page
++
;
// Something's probably wrong if a site has more than 1,500 pending cron actions
if
(
$page
>
15
)
{
do_action
(
'a8c_cron_control_stopped_runaway_cron_option_rebuild'
);
break
;
}
// Loop through results and built output Core expects
if
(
!
empty
(
$jobs_posts
)
)
{
foreach
(
$jobs_posts
as
$jobs_post
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment