From 5a30ceb26db2d36a90dd27f0f9b1e204fff0d409 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Mon, 10 May 2010 22:06:27 +0000 Subject: [PATCH] revert non-rewrite permalink settings to be compatible with 2.9, see 13106 git-svn-id: http://svn.automattic.com/wordpress/trunk@14553 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options-permalink.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index ad6822736..23765b305 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -75,11 +75,11 @@ include('./admin-header.php'); $home_path = get_home_path(); $iis7_permalinks = iis7_supports_permalinks(); -$prefix = ''; +$prefix = $blog_prefix = ''; if ( ! got_mod_rewrite() && ! $iis7_permalinks ) - $prefix .= '/index.php'; + $prefix = '/index.php'; if ( is_multisite() && !is_subdomain_install() && is_main_site() ) - $prefix .= '/blog'; + $blog_prefix = '/blog'; if ( isset($_POST['permalink_structure']) || isset($_POST['category_base']) ) { check_admin_referer('update-permalink'); @@ -174,9 +174,9 @@ if ( is_multisite() && !is_subdomain_install() && is_main_site() ) { $structures = array( '', - '/%year%/%monthnum%/%day%/%postname%/', - '/%year%/%monthnum%/%postname%/', - '/archives/%post_id%' + $prefix . '/%year%/%monthnum%/%day%/%postname%/', + $prefix . '/%year%/%monthnum%/%postname%/', + $prefix . '/archives/%post_id%' ); ?>

@@ -187,15 +187,15 @@ $structures = array( - + - + - /archives/123 + /archives/123 @@ -204,7 +204,7 @@ $structures = array( - + @@ -220,11 +220,11 @@ $structures = array( - + - +