Make WordPress Core

Changeset 59796


Ignore:
Timestamp:
02/10/2025 10:49:18 AM (21 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in WP_Query::the_comment() and ::have_comments().

Follow-up to [4934].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-query.php

    r59792 r59796  
    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.
    … …  
    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                }
Note: See TracChangeset for help on using the changeset viewer.