The type attribute for the style element is not needed and should be omitted.
From line 23, column 84; to line 23, column 106
-icon" > type="text/css"
The type attribute is unnecessary for JavaScript resources.
From line 21, column 1; to line 21, column 160
='all' /> type='text/javascript'
add_filter('style_loader_tag', 'clean_style_tag');
function clean_style_tag($src) {
return str_replace("type='text/css'", '', $src);
}
add_filter('script_loader_tag', 'clean_script_tag');
function clean_script_tag($src) {
return str_replace("type='text/javascript'", '', $src);
}
add_action( 'template_redirect', function(){
ob_start( function( $buffer ){
$buffer = str_replace( array( 'type="text/javascript"', "type='text/javascript'" ), '', $buffer );
$buffer = str_replace( array( 'type="text/css"', "type='text/css'" ), '', $buffer );
return $buffer;
});
});