mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Coding Standards: Use strict comparison in wp-admin/includes/taxonomy.php.
Follow-up to [4490], [9481], [55190]. Props ankitmaru, costdev, dhrumilk. Fixes #57859. git-svn-id: https://develop.svn.wordpress.org/trunk@55511 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b2ec9f050e
commit
9ac434799d
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user