From 35eae452e867041079027435d2ad4e4b089fe79d Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Wed, 15 Feb 2012 17:30:37 +0000 Subject: [PATCH] Taxonomy rewrite generation when turning on permalinks, r18443 for taxonomies. Props SergeyBiryukov. Fixes #19794. git-svn-id: https://develop.svn.wordpress.org/trunk@19930 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 9e28698281..dc64bcb5ea 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -330,7 +330,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { $wp->add_query_var($args['query_var']); } - if ( false !== $args['rewrite'] && '' != get_option('permalink_structure') ) { + if ( false !== $args['rewrite'] && ( is_admin() || '' != get_option('permalink_structure') ) ) { $args['rewrite'] = wp_parse_args($args['rewrite'], array( 'slug' => sanitize_title_with_dashes($taxonomy), 'with_front' => true,