From c38d71bcc07f9f90baa83f4499adb3a4194efc3d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 11 Jan 2025 00:37:24 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_check_post_hierarchy_for_loops()`. Follow-up to [10129], [15806]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59597 git-svn-id: http://core.svn.wordpress.org/trunk@58983 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index ebf7c7f3a9..74cedc40e1 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 8a52a916c8..9c581565c8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59596'; +$wp_version = '6.8-alpha-59597'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.