Allow Terms to exist within multiple taxonomies (Regression in 3.0); If a term slug is provided on the form, Respect it (do not suffix it, instead, feedback with error); Do not allow hierarchical term names to exist multiple times within a set level (ie. AU/NSW + AU/NSW is bad, AU/NSW + AU/VIC + AU/VIC/NSW is ok). See #13060

git-svn-id: http://svn.automattic.com/wordpress/trunk@14229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32
2010-04-25 07:35:16 +00:00
parent 72f72cb238
commit 99b439c6f7
2 changed files with 28 additions and 14 deletions

View File

@@ -572,9 +572,8 @@ case 'add-tag' : // From Manage->Tags
$tag_full_name = $_tag->name . ' — ' . $tag_full_name;
$level++;
}
}
if ( is_taxonomy_hierarchical($taxonomy) )
$noparents = _tag_row( $tag, $level, $taxonomy );
}
$tag->name = $tag_full_name;
$parents = _tag_row( $tag, 0, $taxonomy);