Ticket #19205: 19205.diff
File 19205.diff, 625 bytes (added by , 11 years ago) |
---|
-
wp-includes/taxonomy.php
2059 2059 2060 2060 $defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => ''); 2061 2061 $args = wp_parse_args($args, $defaults); 2062 2063 if ( $args['parent'] > 0 && ! term_exists( intval( $args['parent'] ) ) ) 2064 return new WP_Error('missing_parent', __('The selected parent term no longer exists')); 2065 2062 2066 $args['name'] = $term; 2063 2067 $args['taxonomy'] = $taxonomy; 2064 2068 $args = sanitize_term($args, $taxonomy, 'db');