Changeset 12642
- Timestamp:
- 01/07/2010 10:26:33 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/http.php
r12472 r12642 1817 1817 */ 1818 1818 function decompress( $compressed, $length = null ) { 1819 $decompressed = WP_Http_Encoding::compatible_gzinflate( $compressed ); 1820 1821 if ( false !== $decompressed ) 1819 1820 if ( false !== ( $decompressed = @gzinflate( $compressed ) ) ) 1822 1821 return $decompressed; 1823 1822 1824 $decompressed = gzuncompress( $compressed ); 1825 1826 if ( false !== $decompressed ) 1823 if ( false !== ( $decompressed = WP_Http_Encoding::compatible_gzinflate( $compressed ) ) ) 1827 1824 return $decompressed; 1828 1825 1826 if ( false !== ( $decompressed = @gzuncompress( $compressed ) ) ) 1827 return $decompressed; 1828 1829 1829 if ( function_exists('gzdecode') ) { 1830 $decompressed = gzdecode( $compressed );1830 $decompressed = @gzdecode( $compressed ); 1831 1831 1832 1832 if ( false !== $decompressed ) … … 1917 1917 if ( array_key_exists('content-encoding', $headers) && ! empty( $headers['content-encoding'] ) ) 1918 1918 return true; 1919 } else if ( is_string( $headers ) ) {1919 } else if ( is_string( $headers ) ) { 1920 1920 return ( stripos($headers, 'content-encoding:') !== false ); 1921 1921 }
Note: See TracChangeset
for help on using the changeset viewer.