Fixes #1443
git-svn-id: https://develop.svn.wordpress.org/trunk@3007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cc1737314d
commit
072179c8cb
@ -37,6 +37,11 @@ $is_IE = (($is_macIE) || ($is_winIE));
|
|||||||
$is_apache = ( strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') || strstr($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') ) ? 1 : 0;
|
$is_apache = ( strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') || strstr($_SERVER['SERVER_SOFTWARE'], 'LiteSpeed') ) ? 1 : 0;
|
||||||
$is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0;
|
$is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0;
|
||||||
|
|
||||||
|
// On OS X Server, $_SERVER['REMOTE_ADDR'] is the server's address. Workaround this
|
||||||
|
// by using $_SERVER['HTTP_PC_REMOTE_ADDR'], which *is* the remote address.
|
||||||
|
if ( isset($_SERVER['HTTP_PC_REMOTE_ADDR']) )
|
||||||
|
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_PC_REMOTE_ADDR'];
|
||||||
|
|
||||||
// if the config file does not provide the smilies array, let's define it here
|
// if the config file does not provide the smilies array, let's define it here
|
||||||
if (!isset($wpsmiliestrans)) {
|
if (!isset($wpsmiliestrans)) {
|
||||||
$wpsmiliestrans = array(
|
$wpsmiliestrans = array(
|
||||||
|
Loading…
Reference in New Issue
Block a user