Skip to content

Commit db48f82

Browse files
committedFeb 24, 2019
Added a typecast for check on purge_page_on_new_comment option for newly approved comments.
1 parent 7bced91 commit db48f82

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)