mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Add function_exists check for gzdecode. see #9761
git-svn-id: http://svn.automattic.com/wordpress/trunk@11271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
94c4f7ce02
commit
649fd36f57
@ -1787,10 +1787,12 @@ class WP_Http_Encoding {
|
||||
if ( false !== $decompressed )
|
||||
return $decompressed;
|
||||
|
||||
$decompressed = gzdecode( $compressed );
|
||||
if ( function_exists('gzdecode') ) {
|
||||
$decompressed = gzdecode( $compressed );
|
||||
|
||||
if ( false !== $decompressed )
|
||||
return $decompressed;
|
||||
if ( false !== $decompressed )
|
||||
return $decompressed;
|
||||
}
|
||||
|
||||
return $compressed;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user