Never understimate the ingenuity of fools.
git-svn-id: http://svn.automattic.com/wordpress/trunk@542 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3d8f2e3340
commit
15b9216634
|
@ -6,7 +6,14 @@
|
||||||
// accessing a single global $all_settings var
|
// accessing a single global $all_settings var
|
||||||
if (!$_wp_installing) {
|
if (!$_wp_installing) {
|
||||||
$siteurl = get_settings('siteurl');
|
$siteurl = get_settings('siteurl');
|
||||||
if ('/' == substr($siteurl, -1)) $siteurl = substr($siteurl, 0, -1);
|
// "When trying to design a foolproof system,
|
||||||
|
// never underestimate the ingenuity of the fools :)"
|
||||||
|
//
|
||||||
|
// Strip trailing slashes from $siteurl. But don't do
|
||||||
|
// anything that could cause an infinite loop.
|
||||||
|
while (('/' == substr($siteurl, -1)) && (10 > $i++)) {
|
||||||
|
$siteurl = substr($siteurl, 0, -1);
|
||||||
|
}
|
||||||
$blogfilename = get_settings('blogfilename');
|
$blogfilename = get_settings('blogfilename');
|
||||||
$blogname = get_settings('blogname');
|
$blogname = get_settings('blogname');
|
||||||
$blogdescription = get_settings('blogdescription');
|
$blogdescription = get_settings('blogdescription');
|
||||||
|
|
Loading…
Reference in New Issue