Update setup.php (#2499)

add_theme_support('html5, [.... 'script', 'style']); removes type="text/javascript" and type=”text/css” from enqueued scripts and styles.
This commit is contained in:
Smeedijzer Internet
2020-08-18 17:34:01 +02:00
committed by GitHub
parent be73e2c2dd
commit 5535ea6184

View File

@@ -93,7 +93,7 @@ add_action('after_setup_theme', function () {
* Enable HTML5 markup support
* @link https://developer.wordpress.org/reference/functions/add_theme_support/#html5
*/
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form']);
add_theme_support('html5', ['caption', 'comment-form', 'comment-list', 'gallery', 'search-form', 'script', 'style']);
/**
* Enable selective refresh for widgets in customizer