[wp-trac] [WordPress Trac] #42804: type is not required in HTML5

WordPress Trac noreply at wordpress.org
Wed Dec 6 13:33:47 UTC 2017


#42804: type is not required in HTML5
-------------------------------------+------------------------------
 Reporter:  sasiddiqui               |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  low                      |   Milestone:  Awaiting Review
Component:  Script Loader            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-testing has-patch  |     Focuses:
-------------------------------------+------------------------------
Changes (by sasiddiqui):

 * keywords:  needs-testing needs-patch => needs-testing has-patch


Comment:

 Please check this patch:
 https://core.trac.wordpress.org/attachment/ticket/42804/42804-update1.patch

 You need to add the {{{add_theme_support}}} in functions.php to remove
 make the code work.

 Something like:
 {{{
 add_theme_support( 'html5', array( 'comment-list', 'comment-form',
 'search-form', 'script', 'style' ) );
 }}}

 or

 {{{
 add_theme_support( 'html5', array( 'script', 'style' ) );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42804#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list