Fix for siteurl problem.
git-svn-id: https://develop.svn.wordpress.org/trunk@613 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b153d9607c
commit
e8c100d0b6
@ -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 . '/';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user