wp-includes/class-wp-duotone.php:571Checks if we have a valid duotone preset.
$duotone_attrstringbool private static function is_preset( $duotone_attr ) { $slug = self::get_slug_from_attribute( $duotone_attr ); $filter_id = self::get_filter_id( $slug ); return array_key_exists( $filter_id, self::get_all_global_styles_presets() ); }Introduced in 6.3.0. 3 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$duotone_attr retyped from string to string|string[].verified against sourcenone to bool.verified against sourcebool to none.verified against sourcesrc/wp-includes/class-wp-duotone.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.