Skip to content
Snippets Groups Projects
Commit e5d2eb4b authored by Erick Hitter's avatar Erick Hitter
Browse files

Make sure only delete actions are checked

parent 8a1c4896
Branches
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment