Ticket #12349: check-already-existsing-slug-even-if-empty.diff
File check-already-existsing-slug-even-if-empty.diff, 491 bytes (added by , 15 years ago) |
---|
-
wp-includes/taxonomy.php
1480 1480 1481 1481 if ( empty($slug) ) 1482 1482 $slug = sanitize_title($name); 1483 elseif ( is_term($slug) ) // Provided slug issue. 1483 1484 if ( is_term($slug) ) // Provided slug issue. 1484 1485 return new WP_Error('term_slug_exists', __('A Term with the slug provided already exists.')); 1485 1486 1486 1487 $term_group = 0;