diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 80e4c1e238..1a1845189e 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -1066,7 +1066,7 @@ function get_page_of_comment( $comment_id, $args = array() ) { } // Find this comment's top-level parent if threading is enabled. - if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent ) { + if ( $args['max_depth'] > 1 && '0' !== $comment->comment_parent ) { return get_page_of_comment( $comment->comment_parent, $args ); } @@ -1126,7 +1126,7 @@ function get_page_of_comment( $comment_id, $args = array() ) { $older_comment_count = $comment_query->query( $comment_args ); // No older comments? Then it's page #1. - if ( 0 == $older_comment_count ) { + if ( 0 === $older_comment_count ) { $page = 1; // Divide comments older than this one by comments per page to get this comment's page number.