pagenow fixes

git-svn-id: https://develop.svn.wordpress.org/trunk@1765 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2004-10-09 02:00:34 +00:00
parent b5dfef4925
commit 9965a3d352
1 changed files with 3 additions and 1 deletions

View File

@ -43,7 +43,7 @@ $wp_htmltranswinuni = array(
$PHP_SELF = $_SERVER['PHP_SELF'];
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
$pagenow = $self_matches[1];
} else {
} else if (strstr($PHP_SELF, '?')) {
$pagenow = explode('/', $PHP_SELF);
$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
$pagenow = explode('?', $pagenow);
@ -51,6 +51,8 @@ if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
if (($querystring_start == '/') && ($pagenow != 'post.php')) {
$pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');
}
} else {
$pagenow = 'index.php';
}
// Simple browser detection