Skip to content
Permalink
Browse files

Merge pull request #175 from jinschoi/master

Added a typecast for check on purge_page_on_new_comment option for ne…
  • Loading branch information...
pradeep910 committed Jul 16, 2019
2 parents a871cd4 + db48f82 commit 229da25f572839454eac335ca4ffb6bd7a59bcbb
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/class-purger.php
@@ -96,7 +96,7 @@ public function purge_post_on_comment_change( $newstatus, $oldstatus, $comment )
switch ( $newstatus ) {
case 'approved':
if ( 1 === $nginx_helper_admin->options['purge_page_on_new_comment'] ) {
if ( 1 === (int)$nginx_helper_admin->options['purge_page_on_new_comment'] ) {
$this->log( '* Comment ( ' . $_comment_id . ' ) approved. Post ( ' . $_post_id . ' ) purging...' );
$this->log( '* * * * *' );

0 comments on commit 229da25

Please sign in to comment.
You can’t perform that action at this time.