3 | | My thinking is, pass a $type parameter into {{{ add_inline_script() }}} and {{{ WP_Scripts::add_inline_script() }}} then if that parameter exists, assign it to {{{ WP_Scripts::type_attr }}} |
4 | | If it isn't set, then we revert to the default setting of 'text/javascript' unless we are using {{{ add_theme_support( 'html5', [ 'script' ] ); }}} |
5 | | |
6 | | @GeekPress html5 has been around a while now. I wonder if we should make it default, and require developers to actively {{{ remove_theme_support( 'html5', [ 'script' ] ); }}} if needs be? |