wp-includes/deprecated.php:6521Sanitizes an attributes array into an attributes string to be placed inside a <script> tag.
$attributesstringfunction wp_sanitize_script_attributes( $attributes ) { _deprecated_function( __FUNCTION__, '7.0.0', 'wp_get_script_tag() or wp_get_inline_script_tag()' ); $attributes_string = ''; foreach ( $attributes as $attribute_name => $attribute_value ) { if ( is_bool( $attribute_value ) ) { if ( $attribute_value ) { $attributes_string .= ' ' . esc_attr( $attribute_name ); } } else { $attributes_string .= sprintf( ' %1$s="%2$s"', esc_attr( $attribute_name ), esc_attr( $attribute_value ) ); } } return $attributes_string;}Introduced in 5.7.0. One change between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$attributes retyped from array to untyped.verified against sourcesrc/wp-includes/deprecated.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.