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
This commit is contained in:
parent
e296294486
commit
e636fcd30c
|
@ -188,7 +188,7 @@ function wp_insert_category( $catarr, $wp_error = false ) {
|
||||||
function wp_update_category( $catarr ) {
|
function wp_update_category( $catarr ) {
|
||||||
$cat_id = (int) $catarr['cat_ID'];
|
$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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue