Uses
Uses | Description |
---|---|
wp-includes/class-pop3.php: stripos() |
Whether the content be decoded based on the headers.
(array|string) (Required) All of the available headers.
(bool)
File: wp-includes/class-wp-http-encoding.php
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 ); } return false; }
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/should_decode