Changeset 39326 for trunk/src/wp-includes/taxonomy.php
- Timestamp:
- 11/21/2016 02:45:53 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r39283 r39326 2656 2656 // If an empty slug was passed or the parent changed, reset the slug to something unique. 2657 2657 // Otherwise, bail. 2658 if ( $empty_slug || ( $parent != $term['parent']) ) 2658 if ( $empty_slug || ( $parent != $term['parent']) ) { 2659 2659 $slug = wp_unique_term_slug($slug, (object) $args); 2660 else 2660 } else { 2661 /* translators: 1: Taxonomy term slug */ 2661 2662 return new WP_Error('duplicate_term_slug', sprintf(__('The slug “%s” is already in use by another term'), $slug)); 2663 } 2662 2664 } 2663 2665
Note: See TracChangeset
for help on using the changeset viewer.