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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user