Used By
Used By | Description |
---|---|
wp-includes/class-wp-http-encoding.php: WP_Http_Encoding::accept_encoding() | What encoding types to accept and their priority values. |
Whether decompression and compression are supported by the PHP version.
Each function is tested instead of checking for the zlib extension, to ensure that the functions all exist in the PHP version and aren’t disabled.
(bool)
File: wp-includes/class-wp-http-encoding.php
public static function is_available() { return ( function_exists( 'gzuncompress' ) || function_exists( 'gzdeflate' ) || function_exists( 'gzinflate' ) ); }
Version | Description |
---|---|
2.8.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_encoding/is_available