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
36c938ae
Commit
36c938ae
authored
Mar 03, 2017
by
Erick Hitter
Browse files
Don't need to check a job if it's already disallowed
parent
9083519e
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/class-events-store.php
View file @
36c938ae
...
...
@@ -230,6 +230,11 @@ class Events_Store extends Singleton {
* When an entry exists, don't try to create it again
*/
public
function
block_creation_if_job_exists
(
$job
)
{
// Job already disallowed, carry on
if
(
!
is_object
(
$job
)
)
{
return
$job
;
}
$instance
=
md5
(
maybe_serialize
(
$job
->
args
)
);
if
(
0
!==
$this
->
get_job_id
(
$job
->
timestamp
,
$job
->
hook
,
$instance
)
)
{
return
false
;
...
...
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