diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index 34728ca5f6..5379dddee0 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -2353,7 +2353,7 @@ function wp_sanitize_script_attributes( $attributes ) { foreach ( $attributes as $attribute_name => $attribute_value ) { if ( is_bool( $attribute_value ) ) { if ( $attribute_value ) { - $attributes_string .= $html5_script_support ? sprintf( ' %1$s="%2$s"', esc_attr( $attribute_name ), esc_attr( $attribute_name ) ) : ' ' . $attribute_name; + $attributes_string .= $html5_script_support ? sprintf( ' %1$s="%2$s"', esc_attr( $attribute_name ), esc_attr( $attribute_name ) ) : ' ' . esc_attr( $attribute_name ); } } else { $attributes_string .= sprintf( ' %1$s="%2$s"', esc_attr( $attribute_name ), esc_attr( $attribute_value ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index f9f5feadd4..233f6c3d1b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50571'; +$wp_version = '5.8-alpha-50575'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.