mirror of
git://develop.git.wordpress.org/
synced 2025-01-31 12:29:09 +01:00
PHP notice fix
git-svn-id: https://develop.svn.wordpress.org/trunk@3051 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7b012be984
commit
9019babb19
@ -39,7 +39,7 @@ if ( strpos($_SERVER['SCRIPT_FILENAME'], 'php.cgi') == strlen($_SERVER['SCRIPT_F
|
||||
$_SERVER['SCRIPT_FILENAME'] = $_SERVER['PATH_TRANSLATED'];
|
||||
|
||||
// Fix for PHP as CGI hosts that set PATH_INFO to PHP_SELF value
|
||||
if ( $_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF'] )
|
||||
if ( isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] == $_SERVER['PHP_SELF'] )
|
||||
unset($_SERVER['PATH_INFO']);
|
||||
|
||||
if ( !(phpversion() >= '4.1') )
|
||||
|
Loading…
x
Reference in New Issue
Block a user