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
This commit is contained in:
Sergey Biryukov 2025-02-10 10:49:18 +00:00
parent c27831121a
commit 78bcb74bdf

View File

@ -3847,7 +3847,7 @@ class WP_Query {
$comment = $this->next_comment();
if ( 0 == $this->current_comment ) {
if ( 0 === $this->current_comment ) {
/**
* Fires once the comment loop is started.
*
@ -3869,7 +3869,7 @@ class WP_Query {
public function have_comments() {
if ( $this->current_comment + 1 < $this->comment_count ) {
return true;
} elseif ( $this->current_comment + 1 == $this->comment_count ) {
} elseif ( $this->current_comment + 1 === $this->comment_count ) {
$this->rewind_comments();
}