Skip to content

Commit de302c6

Browse files
Coding Standards: Use strict comparison in get_page_of_comment().
Follow-up to [9367], [9522], [9808]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59860 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1f519fd commit de302c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
10661066
}
10671067

10681068
// Find this comment's top-level parent if threading is enabled.
1069-
if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent ) {
1069+
if ( $args['max_depth'] > 1 && '0' !== $comment->comment_parent ) {
10701070
return get_page_of_comment( $comment->comment_parent, $args );
10711071
}
10721072

@@ -1126,7 +1126,7 @@ function get_page_of_comment( $comment_id, $args = array() ) {
11261126
$older_comment_count = $comment_query->query( $comment_args );
11271127

11281128
// No older comments? Then it's page #1.
1129-
if ( 0 == $older_comment_count ) {
1129+
if ( 0 === $older_comment_count ) {
11301130
$page = 1;
11311131

11321132
// Divide comments older than this one by comments per page to get this comment's page number.

0 commit comments

Comments
 (0)