Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in `wp_check_post_hierarchy_f…
Browse files Browse the repository at this point in the history
…or_loops()`.

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

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

git-svn-id: https://develop.svn.wordpress.org/trunk@59597 602fd350-edb4-49c9-b593-d223f7449a82
  • Loading branch information
SergeyBiryukov committed Jan 11, 2025
1 parent 1dd2f28 commit 4051e31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -7934,7 +7934,7 @@ function wp_check_post_hierarchy_for_loops( $post_parent, $post_id ) {
}

// Can't be its own parent.
if ( $post_parent == $post_id ) {
if ( $post_parent === $post_id ) {
return 0;
}

Expand Down

0 comments on commit 4051e31

Please sign in to comment.