Make WordPress Core

Changeset 59597


Ignore:
Timestamp:
01/11/2025 12:35:45 AM (3 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_check_post_hierarchy_for_loops().

Follow-up to [10129], [15806].

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

File:
1 edited

Legend:

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

    r59596 r59597  
    79357935
    79367936    // Can't be its own parent.
    7937     if ( $post_parent == $post_id ) {
     7937    if ( $post_parent === $post_id ) {
    79387938        return 0;
    79397939    }
Note: See TracChangeset for help on using the changeset viewer.