From e636fcd30cf8c9118f732b634991b8692010759b Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 Mar 2023 07:04:20 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp-admin/includes/taxonomy.php`. Follow-up to [4490], [9481], [55190]. Props ankitmaru, costdev, dhrumilk. Fixes #57859. Built from https://develop.svn.wordpress.org/trunk@55511 git-svn-id: http://core.svn.wordpress.org/trunk@55043 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/taxonomy.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/taxonomy.php b/wp-admin/includes/taxonomy.php index 6f6d502711..7765084fa7 100644 --- a/wp-admin/includes/taxonomy.php +++ b/wp-admin/includes/taxonomy.php @@ -188,7 +188,7 @@ function wp_insert_category( $catarr, $wp_error = false ) { function wp_update_category( $catarr ) { $cat_id = (int) $catarr['cat_ID']; - if ( isset( $catarr['category_parent'] ) && ( $cat_id == $catarr['category_parent'] ) ) { + if ( isset( $catarr['category_parent'] ) && ( $cat_id === (int) $catarr['category_parent'] ) ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 37a5fc7611..6ef6fc0eab 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55508'; +$wp_version = '6.3-alpha-55511'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.