From 78bcb74bdfbb58cdd494058458e5bbc4b84df022 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 10 Feb 2025 10:49:18 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-query.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-query.php b/src/wp-includes/class-wp-query.php index f8d3d67d3f..e7ad0a0f72 100644 --- a/src/wp-includes/class-wp-query.php +++ b/src/wp-includes/class-wp-query.php @@ -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(); }