wp_get_script_polyfill
wp_get_script_polyfill ( $scripts, $tests )
Parameters:- (WP_Scripts) scripts WP_Scripts object.
- (string[]) tests Features to detect.
Returns:- (string) Conditional polyfill inline script.
Defined at: - Introduced in WordPress: 5.0.0
- Deprecated in WordPress: —
Description
Returns contents of an inline script used in appending polyfill scripts for
browsers which fail the provided tests. The provided array is a mapping from
a condition to verify feature support to its polyfill script handle.