WP_Theme::_check_headers_property_has_correct_type()private staticWP 1.0

Method of the class: WP_Theme{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WP_Theme::_check_headers_property_has_correct_type( $headers );
$headers (required)
-

WP_Theme::_check_headers_property_has_correct_type() code WP 6.7.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;
}