From 15ebb1f893b14b24820b92e37c2217e191839a94 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Tue, 14 Dec 2010 16:28:16 +0000 Subject: [PATCH] Add WP Rewrite root to front of add_permastruct() call when adding a taxonomy. fixes #15813 git-svn-id: http://svn.automattic.com/wordpress/trunk@16918 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 467093c69e..b708838440 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -329,7 +329,7 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { $tag = '([^/]+)'; $wp_rewrite->add_rewrite_tag("%$taxonomy%", $tag, $args['query_var'] ? "{$args['query_var']}=" : "taxonomy=$taxonomy&term="); - $wp_rewrite->add_permastruct($taxonomy, "{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); + $wp_rewrite->add_permastruct($taxonomy, "{$wp_rewrite->root}{$args['rewrite']['slug']}/%$taxonomy%", $args['rewrite']['with_front']); } if ( is_null($args['show_ui']) )