Skip to content

Commit

Permalink
Merge pull request #175 from jinschoi/master
Browse files Browse the repository at this point in the history
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 229da25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/class-purger.php
Expand Up @@ -96,7 +96,7 @@ public function purge_post_on_comment_change( $newstatus, $oldstatus, $comment )
switch ( $newstatus ) { switch ( $newstatus ) {


case 'approved': 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( '* Comment ( ' . $_comment_id . ' ) approved. Post ( ' . $_post_id . ' ) purging...' );
$this->log( '* * * * *' ); $this->log( '* * * * *' );
Expand Down

0 comments on commit 229da25

Please sign in to comment.