WP_Theme::_check_headers_property_has_correct_type
Method of the class: WP_Theme{}
No Hooks.
Returns
null. Nothing (null).
Usage
$result = WP_Theme::_check_headers_property_has_correct_type( $headers );
- $headers(required)
- .
WP_Theme::_check_headers_property_has_correct_type() WP Theme:: check headers property has correct type code WP 6.9.1
private static function _check_headers_property_has_correct_type( $headers ) {
if ( ! is_array( $headers ) ) {
return false;
}
foreach ( $headers as $key => $value ) {
if ( ! is_string( $key ) || ! is_string( $value ) ) {
return false;
}
}
return true;
}