Skip to content

Commit 5847ac6

Browse files
Merge pull request #159 from jinschoi/master
Fix typo causing failure to purge on trashed comment.
2 parents 9c44ef8 + 52054ed commit 5847ac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purger.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function purgePostOnCommentChange( $newstatus, $oldstatus, $comment ) {
5151
case 'spam':
5252
case 'unapproved':
5353
case 'trash':
54-
if ( $oldstatus == 'approve' ) {
54+
if ( $oldstatus == 'approved' ) {
5555
if ( $rt_wp_nginx_helper->options[ 'purge_page_on_deleted_comment' ] == 1 ) {
5656
$this->log( "* Comment ($_comment_id) removed as ($newstatus). Post ($_post_id) purging..." );
5757
$this->log( "* * * * *" );

0 commit comments

Comments
 (0)