From 640ed590a26ad0387ed6c0b26500d9fac576a6a4 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Tue, 14 Dec 2010 16:27:03 +0000 Subject: [PATCH] Recreate initial taxonomies after updating their URL base. props nacin. fixes #15815 git-svn-id: https://develop.svn.wordpress.org/trunk@16917 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options-permalink.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 36ef64d8ef..0ed9e73682 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -97,6 +97,8 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { $tag_base = $blog_prefix . preg_replace('#/+#', '/', '/' . str_replace( '#', '', $tag_base ) ); $wp_rewrite->set_tag_base( $tag_base ); } + + create_initial_taxonomies(); } $permalink_structure = get_option('permalink_structure');