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:

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.

Related Functions

wp_get_active_and_valid_themes, wp_get_active_and_valid_plugins, wp_kses_uri_attributes, wp_sanitize_script_attributes, wp_is_site_initialized

Top Google Results

User discussions

wpseek mobile