Skip to content

Commit a40a126

Browse files
Fix old status check typo.
Ref PR #159
1 parent da63e56 commit a40a126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

admin/class-purger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function purge_post_on_comment_change( $newstatus, $oldstatus, $comment )
108108
case 'spam':
109109
case 'unapproved':
110110
case 'trash':
111-
if ( 'approve' === $oldstatus && 1 === (int)$nginx_helper_admin->options['purge_page_on_deleted_comment'] ) {
111+
if ( 'approved' === $oldstatus && 1 === (int)$nginx_helper_admin->options['purge_page_on_deleted_comment'] ) {
112112

113113
$this->log( '* Comment ( ' . $_comment_id . ' ) removed as ( ' . $newstatus . ' ). Post ( ' . $_post_id . ' ) purging...' );
114114
$this->log( '* * * * *' );

0 commit comments

Comments
 (0)