diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 1c63b9be03..a67d52a9af 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -2040,6 +2040,7 @@ function wp_insert_term( $term, $taxonomy, $args = array() ) { $name_matches = get_terms( $taxonomy, array( 'name' => $name, 'hide_empty' => false, + 'parent' => $args['parent'], ) ); /* diff --git a/wp-includes/version.php b/wp-includes/version.php index 45e2331232..a6585aa598 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40144'; +$wp_version = '4.8-alpha-40145'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.