Changeset 61052
- Timestamp:
- 10/22/2025 10:31:58 PM (7 weeks ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/script-loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r61022 r61052 2870 2870 */ 2871 2871 function wp_sanitize_script_attributes( $attributes ) { 2872 $html5_script_support = ! is_admin() && !current_theme_supports( 'html5', 'script' );2872 $html5_script_support = is_admin() || current_theme_supports( 'html5', 'script' ); 2873 2873 $attributes_string = ''; 2874 2874 … … 2880 2880 if ( is_bool( $attribute_value ) ) { 2881 2881 if ( $attribute_value ) { 2882 $attributes_string .= $html5_script_support ? sprintf( ' %1$s="%2$s"', esc_attr( $attribute_name ), esc_attr( $attribute_name ) ) : ' ' . esc_attr( $attribute_name);2882 $attributes_string .= $html5_script_support ? ' ' . esc_attr( $attribute_name ) : sprintf( ' %1$s="%2$s"', esc_attr( $attribute_name ), esc_attr( $attribute_name ) ); 2883 2883 } 2884 2884 } else {
Note: See TracChangeset
for help on using the changeset viewer.