Skip to content

Commit 78bcb74

Browse files
Coding Standards: Use strict comparison in WP_Query::the_comment() and ::have_comments().
Follow-up to [4934]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59796 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c278311 commit 78bcb74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/class-wp-query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3847,7 +3847,7 @@ public function the_comment() {
38473847

38483848
$comment = $this->next_comment();
38493849

3850-
if ( 0 == $this->current_comment ) {
3850+
if ( 0 === $this->current_comment ) {
38513851
/**
38523852
* Fires once the comment loop is started.
38533853
*
@@ -3869,7 +3869,7 @@ public function the_comment() {
38693869
public function have_comments() {
38703870
if ( $this->current_comment + 1 < $this->comment_count ) {
38713871
return true;
3872-
} elseif ( $this->current_comment + 1 == $this->comment_count ) {
3872+
} elseif ( $this->current_comment + 1 === $this->comment_count ) {
38733873
$this->rewind_comments();
38743874
}
38753875

0 commit comments

Comments
 (0)