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 )
|
||||
return $decompressed;
|
||||
|
||||
if ( function_exists('gzdecode') ) {
|
||||
$decompressed = gzdecode( $compressed );
|
||||
|
||||
if ( false !== $decompressed )
|
||||
return $decompressed;
|
||||
}
|
||||
|
||||
return $compressed;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue