Add function_exists check for gzdecode. see #9761
git-svn-id: https://develop.svn.wordpress.org/trunk@11271 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
cdb7df7737
commit
4f60459b28
|
@ -1787,10 +1787,12 @@ class WP_Http_Encoding {
|
||||||
if ( false !== $decompressed )
|
if ( false !== $decompressed )
|
||||||
return $decompressed;
|
return $decompressed;
|
||||||
|
|
||||||
$decompressed = gzdecode( $compressed );
|
if ( function_exists('gzdecode') ) {
|
||||||
|
$decompressed = gzdecode( $compressed );
|
||||||
|
|
||||||
if ( false !== $decompressed )
|
if ( false !== $decompressed )
|
||||||
return $decompressed;
|
return $decompressed;
|
||||||
|
}
|
||||||
|
|
||||||
return $compressed;
|
return $compressed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue