diff --git a/includes/class-delete-all.php b/includes/class-delete-all.php index 91de82907131632439936f78e8410ff66ab983d7..636c332e6e3d2377cd8587814b1351aa0178cc20 100644 --- a/includes/class-delete-all.php +++ b/includes/class-delete-all.php @@ -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,