Make WordPress Core

Changeset 14234


Ignore:
Timestamp:
04/25/2010 03:25:00 PM (14 years ago)
Author:
wpmuguru
Message:

only append parent term slug until unique slug found, see #10712

Location:
trunk/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes

    • Property svn:ignore set to
      .theme.php.swp
  • trunk/wp-includes/taxonomy.php

    r14229 r14234  
    17321732            if ( is_wp_error($parent_term) || empty($parent_term) )
    17331733                break;
    1734                 $slug .= '-' . $parent_term->slug;
     1734            $slug .= '-' . $parent_term->slug;
     1735            if ( ! is_term( $slug ) )
     1736                return $slug;
     1737
    17351738            if ( empty($parent_term->parent) )
    17361739                break;
Note: See TracChangeset for help on using the changeset viewer.