first pass on optional global terms, see #12589

git-svn-id: http://svn.automattic.com/wordpress/trunk@13715 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru
2010-03-16 17:17:55 +00:00
parent 10656cb1eb
commit 47302e0188
8 changed files with 57 additions and 22 deletions

View File

@@ -520,7 +520,7 @@ function format_code_lang( $code = '' ) {
}
function sync_category_tag_slugs( $term, $taxonomy ) {
if ( $taxonomy == 'category' || $taxonomy == 'post_tag' ) {
if ( global_terms_enabled() && ( $taxonomy == 'category' || $taxonomy == 'post_tag' ) ) {
if ( is_object( $term ) ) {
$term->slug = sanitize_title( $term->name );
} else {