Code Duplication    Length = 3-3 lines in 2 locations

src/wp-includes/taxonomy.php 2 locations

@@ 1993-1995 (lines=3) @@
1990
	$defaults = array( 'alias_of' => '', 'description' => '', 'parent' => 0, 'slug' => '');
1991
	$args = wp_parse_args( $args, $defaults );
1992
1993
	if ( $args['parent'] > 0 && ! term_exists( (int) $args['parent'] ) ) {
1994
		return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );
1995
	}
1996
1997
	$args['name'] = $term;
1998
	$args['taxonomy'] = $taxonomy;
@@ 2617-2619 (lines=3) @@
2614
		return new WP_Error( 'empty_term_name', __( 'A name is required for this term.' ) );
2615
	}
2616
2617
	if ( $parsed_args['parent'] > 0 && ! term_exists( (int) $parsed_args['parent'] ) ) {
2618
		return new WP_Error( 'missing_parent', __( 'Parent term does not exist.' ) );
2619
	}
2620
2621
	$empty_slug = false;
2622
	if ( empty( $args['slug'] ) ) {