Make WordPress Core

Changeset 59860


Ignore:
Timestamp:
02/23/2025 05:13:30 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in get_page_of_comment().

Follow-up to [9367], [9522], [9808].

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

File:
1 edited

Legend:

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

    r59852 r59860  
    10671067
    10681068        // Find this comment's top-level parent if threading is enabled.
    1069         if ( $args['max_depth'] > 1 && 0 != $comment->comment_parent ) {
     1069        if ( $args['max_depth'] > 1 && '0' !== $comment->comment_parent ) {
    10701070            return get_page_of_comment( $comment->comment_parent, $args );
    10711071        }
     
    11271127
    11281128        // No older comments? Then it's page #1.
    1129         if ( 0 == $older_comment_count ) {
     1129        if ( 0 === $older_comment_count ) {
    11301130            $page = 1;
    11311131
Note: See TracChangeset for help on using the changeset viewer.