From 3431effe877981ccd3aa5e6406f3344df67a77aa Mon Sep 17 00:00:00 2001
From: donncha
Date: Thu, 13 Jul 2006 10:21:13 +0000
Subject: Enable permalinks options page.
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@672 7be80a69-a1ef-0310-a953-fb0f7c49ff36
---
wp-admin/options-permalink.php | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
(limited to 'wp-admin/options-permalink.php')
diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php
index 73a610b..5b48a8f 100644
--- a/wp-admin/options-permalink.php
+++ b/wp-admin/options-permalink.php
@@ -1,5 +1,4 @@
domain.$current_site->path == $current_blog->domain.$current_blog->path ) {
+ $permalink_structure = '/blog' . $permalink_structure;
+ }
$wp_rewrite->set_permalink_structure($permalink_structure);
}
@@ -72,6 +74,9 @@ if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) {
$category_base = $_POST['category_base'];
if (! empty($category_base) )
$category_base = preg_replace('#/+#', '/', '/' . $_POST['category_base']);
+ if( $category_base != '' && $current_site->domain.$current_site->path == $current_blog->domain.$current_blog->path ) {
+ $category_base = '/blog' . $category_base;
+ }
$wp_rewrite->set_category_base($category_base);
}
}
@@ -149,7 +154,7 @@ checked="checked"
-:
+: domain.$current_site->path == $current_blog->domain.$current_blog->path ) { echo "/blog"; $permalink_structure = str_replace( "/blog", "", $permalink_structure ); }?>
@@ -158,7 +163,7 @@ checked="checked"
/index.php/taxonomy/tags would make your category links like http://example.org/index.php/taxonomy/tags/uncategorized/
. If you leave this blank the default will be used.') ?>
- :
+ : domain.$current_site->path == $current_blog->domain.$current_blog->path ) { echo "/blog"; $category_base = str_replace( "/blog", "", $category_base ); }?>
--
cgit