diff --git wp-includes/taxonomy.php wp-includes/taxonomy.php
index 64a38ea..7ebb3ed 100644
|
|
function wp_unique_term_slug($slug, $term) { |
2377 | 2377 | } |
2378 | 2378 | |
2379 | 2379 | // If we didn't get a unique slug, try appending a number to make it unique. |
2380 | | if ( !empty($args['term_id']) ) |
2381 | | $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s AND term_id != %d", $slug, $args['term_id'] ); |
2382 | | else |
2383 | | $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $slug ); |
| 2380 | $query = $wpdb->prepare( "SELECT slug FROM $wpdb->terms WHERE slug = %s", $slug ); |
2384 | 2381 | |
2385 | 2382 | if ( $wpdb->get_var( $query ) ) { |
2386 | 2383 | $num = 2; |