Skip to content

Commit 229da25

Browse files
authored
Merge pull request #175 from jinschoi/master
Added a typecast for check on purge_page_on_new_comment option for ne…
2 parents a871cd4 + db48f82 commit 229da25

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
@@ -96,7 +96,7 @@ public function purge_post_on_comment_change( $newstatus, $oldstatus, $comment )
9696
switch ( $newstatus ) {
9797

9898
case 'approved':
99-
if ( 1 === $nginx_helper_admin->options['purge_page_on_new_comment'] ) {
99+
if ( 1 === (int)$nginx_helper_admin->options['purge_page_on_new_comment'] ) {
100100

101101
$this->log( '* Comment ( ' . $_comment_id . ' ) approved. Post ( ' . $_post_id . ' ) purging...' );
102102
$this->log( '* * * * *' );

0 commit comments

Comments
 (0)