Summery Summery
Whether the content be decoded based on the headers.
Syntax Syntax
Parameters Parameters
- $headers
-
(Required) All of the available headers.
Return Return
(bool)
Source Source
File: wp-includes/class-wp-http-encoding.php
* @return bool */ public static function should_decode( $headers ) { if ( is_array( $headers ) ) { if ( array_key_exists( 'content-encoding', $headers ) && ! empty( $headers['content-encoding'] ) ) { return true; } } elseif ( is_string( $headers ) ) { return ( stripos( $headers, 'content-encoding:' ) !== false ); }
Advertisement
Changelog Changelog
Version | Description |
---|---|
2.8.0 | Introduced. |