wp_sizes_attribute_includes_valid_auto
wp_sizes_attribute_includes_valid_auto ( $sizes_attr )
Parameters:- (string) sizes_attr The 'sizes' attribute value.
Returns:- (bool) True if the 'auto' keyword is present, false otherwise.
Defined at: - Introduced in WordPress: 6.7.0
- Deprecated in WordPress: —
Description
Checks whether the given 'sizes' attribute includes the 'auto' keyword as the first item in the list.Per the HTML spec, if present it must be the first entry.