Make $pagenow work with PATH_INFO.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52a587a236
commit
e7e5b63493
@ -41,6 +41,9 @@ $wp_htmltranswinuni = array(
|
|||||||
|
|
||||||
// On which page are we ?
|
// On which page are we ?
|
||||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||||
|
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||||
|
$pagenow = $self_matches[1];
|
||||||
|
} else {
|
||||||
$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);
|
||||||
@ -48,6 +51,7 @@ $pagenow = $pagenow[0];
|
|||||||
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');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Simple browser detection
|
// Simple browser detection
|
||||||
$is_lynx = 0; $is_gecko = 0; $is_winIE = 0; $is_macIE = 0; $is_opera = 0; $is_NS4 = 0;
|
$is_lynx = 0; $is_gecko = 0; $is_winIE = 0; $is_macIE = 0; $is_opera = 0; $is_NS4 = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user