Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
4933d175
Commit
4933d175
authored
Feb 18, 2017
by
Erick Hitter
Browse files
Impose some upper bound on Internal Jobs
parent
9da692e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-internal-events.php
View file @
4933d175
...
...
@@ -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
)
);
}
...
...
Write
Preview
Markdown
is supported
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