Make WordPress Core

Ticket #57859: 57859.diff

File 57859.diff, 1.2 KB (added by dhrumilk, 3 years ago)

Diff File added.

  • src/wp-admin/includes/taxonomy.php

    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 ) { 
    188188function wp_update_category( $catarr ) {
    189189        $cat_id = (int) $catarr['cat_ID'];
    190190
    191         if ( isset( $catarr['category_parent'] ) && ( $cat_id == $catarr['category_parent'] ) ) {
     191        if ( isset( $catarr['category_parent'] ) && ( $cat_id === (int) $catarr['category_parent'] ) ) {
    192192                return false;
    193193        }
    194194