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.