Make sure apache_getenv() exists before using it. fixes #6278
git-svn-id: https://develop.svn.wordpress.org/trunk@7401 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
98e215a58e
commit
09e9e04f89
|
@ -779,7 +779,7 @@ function media_upload_form( $errors = null ) {
|
||||||
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
|
$flash_action_url = get_option('siteurl') . "/wp-admin/async-upload.php";
|
||||||
|
|
||||||
// If Mac and mod_security, no Flash. :(
|
// If Mac and mod_security, no Flash. :(
|
||||||
if ( false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) )
|
if ( function_exists('apache_getenv') && false !== strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'mac') && 'on' == strtolower(apache_getenv('MODSEC_ENABLE')) )
|
||||||
$flash = false;
|
$flash = false;
|
||||||
else
|
else
|
||||||
$flash = true;
|
$flash = true;
|
||||||
|
|
Loading…
Reference in New Issue