Skip to content

Commit 4051e31

Browse files
Coding Standards: Use strict comparison in wp_check_post_hierarchy_for_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
1 parent 1dd2f28 commit 4051e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7934,7 +7934,7 @@ function wp_check_post_hierarchy_for_loops( $post_parent, $post_id ) {
79347934
}
79357935

79367936
// Can't be its own parent.
7937-
if ( $post_parent == $post_id ) {
7937+
if ( $post_parent === $post_id ) {
79387938
return 0;
79397939
}
79407940

0 commit comments

Comments
 (0)