Fix for siteurl problem.

git-svn-id: http://svn.automattic.com/wordpress/trunk@613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2003-12-15 08:13:41 +00:00
parent 5c97b54c55
commit 39e68a7a6f
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ default:
?>
<p>Using the permalink structure value you currently have, <code><?php echo $permalink_structure; ?></code>, these are the mod_rewrite rules you should have in your <code>.htaccess</code> file.</p>
<?php
$site_root = str_replace('http://', '', trim(get_settings('siteurl')));
$site_root = str_replace('http://', '', trim($siteurl));
$site_root = preg_replace('|([^/]*)(.*)|i', '$2', $site_root);
if ('/' != substr($site_root, -1)) $site_root = $site_root . '/';