Changeset 28733 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 06/11/2014 02:27:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r28712 r28733 2437 2437 $slug_provided = ! empty( $args['slug'] ); 2438 2438 if ( ! $slug_provided ) { 2439 $slug = sanitize_title($name); 2439 $_name = trim( $name ); 2440 $existing_term = get_term_by( 'name', $_name, $taxonomy ); 2441 if ( $existing_term ) { 2442 $slug = $existing_term->slug; 2443 } else { 2444 $slug = sanitize_title( $name ); 2445 } 2440 2446 } else { 2441 2447 $slug = $args['slug'];
Note: See TracChangeset
for help on using the changeset viewer.