mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 20:09:53 +01:00
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:
parent
c27831121a
commit
78bcb74bdf
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user