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( - + - +