WordPress.org

Make WordPress Core

Ticket #4415: taxonomy.patch

File taxonomy.patch, 488 bytes (added by devil1591, 7 years ago)
  • taxonomy.php

     
    9393        if ( empty($parent) || !get_category( $parent ) || ($cat_ID && cat_is_ancestor_of($cat_ID, $parent) ) ) 
    9494                $parent = 0; 
    9595 
    96         $args = compact('slug', 'parent', 'description'); 
     96        $args = compact('name', 'slug', 'parent', 'description'); 
    9797 
    9898        if ( $update ) 
    9999                $cat_ID = wp_update_term($cat_ID, 'category', $args);