Ticket #35321: 35321.diff
File 35321.diff, 607 bytes (added by , 8 years ago) |
---|
-
src/wp-includes/taxonomy.php
2575 2575 } 2576 2576 $defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => ''); 2577 2577 $args = wp_parse_args( $args, $defaults ); 2578 $args['description'] = (string) $args['description']; // coerce null to empty stringt 2578 2579 2579 2580 if ( $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) { 2580 2581 return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );