Add script and style to theme support for html5

In HTML5, the type attribute is not required for the <script> and <style> tags. Including the attribute on these tags (type="text/javascript", for example) will trigger a validation warning in HTML validation tools.

From WordPress 5.3, two new arguments are supported for the html5 theme feature, script and style. When these arguments are passed, the type attribute will not be output for those tags.

See https://make.wordpress.org/core/2019/10/15/miscellaneous-developer-focused-changes-in-5-3/
This commit is contained in:
IanDelMar 2020-04-13 12:09:59 +02:00 committed by GitHub
parent e8c4eb1eca
commit e84fca387a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@ if ( ! function_exists( 'understrap_setup' ) ) {
'comment-list',
'gallery',
'caption',
'script',
'style',
) );
/*