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

WordPress Trac noreply at wordpress.org
Tue Dec 5 16:24:23 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 needs-patch  |     Focuses:
---------------------------------------+------------------------------

Comment (by swissspidy):

 > Something like `add_theme_support( 'html5', [ 'script', 'css' ] );`?

 Yeah, something like that.

 > Could this be simplified to just `add_theme_support( 'html5' );` to
 catch all?

 That's how the command worked in the beginning, however it was changed to
 take an array of features that are supported.

 For BC reasons `add_theme_support( 'html5' );` is like calling
 `add_theme_support( 'html5', array( 'comment-list', 'comment-form',
 'search-form' ) );`. I don't think we can change that. Plus, this would
 warrant its own ticket.

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


More information about the wp-trac mailing list