Skip to content

Commit ee78b37

Browse files
committed
Fix delete post status in query.
1 parent 9442dd2 commit ee78b37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

includes/Core/Util/Reset.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ private function delete_posts( $scope ) {
296296
$post_ids = get_posts(
297297
array(
298298
'post_type' => Email_Log::POST_TYPE,
299-
'post_status' => 'any',
299+
'post_status' => array(
300+
Email_Log::STATUS_SENT,
301+
Email_Log::STATUS_FAILED,
302+
Email_Log::STATUS_SCHEDULED,
303+
),
300304
'fields' => 'ids',
301305
'posts_per_page' => $posts_per_batch,
302306
'no_found_rows' => true,

0 commit comments

Comments
 (0)