pagenow fixes
git-svn-id: http://svn.automattic.com/wordpress/trunk@1765 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e72de79fa2
commit
6372a14f42
|
@ -43,7 +43,7 @@ $wp_htmltranswinuni = array(
|
||||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||||
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||||
$pagenow = $self_matches[1];
|
$pagenow = $self_matches[1];
|
||||||
} else {
|
} else if (strstr($PHP_SELF, '?')) {
|
||||||
$pagenow = explode('/', $PHP_SELF);
|
$pagenow = explode('/', $PHP_SELF);
|
||||||
$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
|
$pagenow = trim($pagenow[(sizeof($pagenow)-1)]);
|
||||||
$pagenow = explode('?', $pagenow);
|
$pagenow = explode('?', $pagenow);
|
||||||
|
@ -51,6 +51,8 @@ if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||||
if (($querystring_start == '/') && ($pagenow != 'post.php')) {
|
if (($querystring_start == '/') && ($pagenow != 'post.php')) {
|
||||||
$pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');
|
$pagenow = get_settings('siteurl') . '/' . get_settings('blogfilename');
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$pagenow = 'index.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple browser detection
|
// Simple browser detection
|
||||||
|
|
Loading…
Reference in New Issue