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:
committed by
GitHub
parent
be73e2c2dd
commit
5535ea6184
@@ -93,7 +93,7 @@ add_action('after_setup_theme', function () {
|
|||||||
* Enable HTML5 markup support
|
* Enable HTML5 markup support
|
||||||
* @link https://developer.wordpress.org/reference/functions/add_theme_support/#html5
|
* @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
|
* Enable selective refresh for widgets in customizer
|
||||||
|
|||||||
Reference in New Issue
Block a user