Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
Bulk Actions Cron Offload
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
WP Plugins
Bulk Actions Cron Offload
Commits
e5d2eb4b
Commit
e5d2eb4b
authored
7 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Make sure only delete actions are checked
parent
8a1c4896
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/class-delete-all.php
+2
-2
2 additions, 2 deletions
includes/class-delete-all.php
with
2 additions
and
2 deletions
includes/class-delete-all.php
+
2
−
2
View file @
e5d2eb4b
...
...
@@ -206,7 +206,7 @@ class Delete_All {
/**
* Find the next scheduled instance of a given action, regardless of arguments
*
* @param string $post_type
Post type hook is scheduled for.
* @param string $post_type Post type hook is scheduled for.
* @return array
*/
private
static
function
action_next_scheduled
(
$post_type
)
{
...
...
@@ -230,7 +230,7 @@ class Delete_All {
foreach
(
$action_instances
as
$instance
=>
$instance_args
)
{
$vars
=
array_shift
(
$instance_args
[
'args'
]
);
if
(
$post_type
===
$vars
->
post_type
)
{
if
(
'delete_all'
===
$vars
->
action
&&
$post_type
===
$vars
->
post_type
)
{
return
array
(
'timestamp'
=>
$timestamp
,
'args'
=>
$vars
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment