diff --git a/src/wp-admin/includes/taxonomy.php b/src/wp-admin/includes/taxonomy.php
index 6f6d502711..7765084fa7 100644
|
a
|
b
|
function wp_insert_category( $catarr, $wp_error = false ) { |
| 188 | 188 | function wp_update_category( $catarr ) { |
| 189 | 189 | $cat_id = (int) $catarr['cat_ID']; |
| 190 | 190 | |
| 191 | | if ( isset( $catarr['category_parent'] ) && ( $cat_id == $catarr['category_parent'] ) ) { |
| | 191 | if ( isset( $catarr['category_parent'] ) && ( $cat_id === (int) $catarr['category_parent'] ) ) { |
| 192 | 192 | return false; |
| 193 | 193 | } |
| 194 | 194 | |