From 8f74fa03a424a864acca1a2bcdf4e65b92437215 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Wed, 19 May 2010 03:15:59 +0000 Subject: [PATCH] restore single WP permalink settings per 2.9.X, related #13106, see #13303 git-svn-id: http://svn.automattic.com/wordpress/trunk@14732 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index 23765b305..e22a2bb6e 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -87,21 +87,21 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { if ( isset( $_POST['permalink_structure'] ) ) { $permalink_structure = $_POST['permalink_structure']; if ( ! empty( $permalink_structure ) ) - $permalink_structure = $prefix . preg_replace( '#/+#', '/', '/' . str_replace( '#', '', $permalink_structure ) ); + $permalink_structure = $blog_prefix . preg_replace( '#/+#', '/', '/' . str_replace( '#', '', $permalink_structure ) ); $wp_rewrite->set_permalink_structure( $permalink_structure ); } if ( isset( $_POST['category_base'] ) ) { $category_base = $_POST['category_base']; if ( ! empty( $category_base ) ) - $category_base = $prefix . preg_replace('#/+#', '/', '/' . str_replace( '#', '', $category_base ) ); + $category_base = $blog_prefix . preg_replace('#/+#', '/', '/' . str_replace( '#', '', $category_base ) ); $wp_rewrite->set_category_base( $category_base ); } if ( isset( $_POST['tag_base'] ) ) { $tag_base = $_POST['tag_base']; if ( ! empty( $tag_base ) ) - $tag_base = $prefix . preg_replace('#/+#', '/', '/' . str_replace( '#', '', $tag_base ) ); + $tag_base = $blog_prefix . preg_replace('#/+#', '/', '/' . str_replace( '#', '', $tag_base ) ); $wp_rewrite->set_tag_base( $tag_base ); } } @@ -163,9 +163,6 @@ if ( ! is_multisite() ) {

URLs which have question marks and lots of numbers in them, however WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A number of tags are available, and here are some examples to get you started.'); ?>