From 4e4cb4e004dc6ce506014d2e477b463f5ce383c2 Mon Sep 17 00:00:00 2001 From: saxmatt Date: Wed, 28 Apr 2004 07:27:03 +0000 Subject: [PATCH] Allow WordPress installation URI and blog URI to be different. git-svn-id: http://svn.automattic.com/wordpress/trunk@1203 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- index.php | 4 ++-- wp-admin/menu.php | 2 +- wp-admin/options-general.php | 8 ++++++-- wp-admin/options-permalink.php | 7 ++++++- wp-admin/upgrade-functions.php | 5 +++++ wp-comments-reply.php | 2 +- wp-content/plugins/google-hilite.php | 2 +- wp-includes/functions.php | 12 ++++++++---- wp-includes/template-functions-author.php | 4 ++-- wp-includes/template-functions-category.php | 8 ++++---- wp-includes/template-functions-general.php | 8 ++++---- wp-includes/template-functions-links.php | 16 ++++++++-------- wp-includes/template-functions-post.php | 4 ++-- wp-login.php | 2 +- wp.php | 2 +- 15 files changed, 52 insertions(+), 34 deletions(-) diff --git a/index.php b/index.php index 181c5252e..08838676f 100644 --- a/index.php +++ b/index.php @@ -12,10 +12,10 @@ require('./wp-blog-header.php'); - + diff --git a/wp-admin/menu.php b/wp-admin/menu.php index 74433eaf4..a404706a5 100644 --- a/wp-admin/menu.php +++ b/wp-admin/menu.php @@ -34,7 +34,7 @@ foreach ($menu as $item) { } ?> -
  • »
  • +
  • »
  • diff --git a/wp-admin/options-general.php b/wp-admin/options-general.php index 59340b69a..4f0cda7b0 100644 --- a/wp-admin/options-general.php +++ b/wp-admin/options-general.php @@ -46,7 +46,7 @@ include('options-head.php');

    - + @@ -59,9 +59,13 @@ include('options-head.php'); - + + + + +

    diff --git a/wp-admin/options-permalink.php b/wp-admin/options-permalink.php index e09beca96..34ec0a52a 100644 --- a/wp-admin/options-permalink.php +++ b/wp-admin/options-permalink.php @@ -75,14 +75,19 @@ $site_root = str_replace('http://', '', trim(get_settings('siteurl'))); $site_root = preg_replace('|([^/]*)(.*)|i', '$2', $site_root); if ('/' != substr($site_root, -1)) $site_root = $site_root . '/'; +$home_root = str_replace('http://', '', trim(get_settings('home'))); +$home_root = preg_replace('|([^/]*)(.*)|i', '$2', $home_root); +if ('/' != substr($home_root, -1)) $home_root = $home_root . '/'; + ?>