WordPress.org

Make WordPress Core

Changeset 13845


Ignore:
Timestamp:
03/27/2010 07:56:54 AM (9 years ago)
Author:
nacin
Message:

Bail in wp_unique_term_slug if the slug is unique and we don't need to come up with a new one. fixes #10712.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r13827 r13845  
    17201720    global $wpdb;
    17211721
     1722    if ( ! is_term( $slug ) )
     1723        return $slug;
     1724
    17221725    // If the taxonomy supports hierarchy and the term has a parent, make the slug unique
    17231726    // by incorporating parent slugs.
Note: See TracChangeset for help on using the changeset viewer.