Ticket #31270: 31270.patch
| File 31270.patch, 520 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/taxonomy.php
2860 2860 if ( ! $slug_provided ) { 2861 2861 $_name = trim( $name ); 2862 2862 $existing_term = get_term_by( 'name', $_name, $taxonomy ); 2863 if ( $existing_term ) {2863 if ( $existing_term && $existing_term->parent == $parent ) { 2864 2864 $slug = $existing_term->slug; 2865 2865 } else { 2866 2866 $slug = sanitize_title( $name );