Make WordPress Core

Opened 7 weeks ago

Last modified 7 weeks ago

#63060 accepted enhancement

Add an option to support all HTML5 theme support options

Reported by: joedolson's profile joedolson Owned by: joedolson's profile joedolson
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Themes Keywords: has-patch
Focuses: Cc:

Description

Currently, supporting HTML5 in WordPress themes requires the author to pass an array citing each area where they wish to support HTML5. This made sense in the early days of HTML5 support, as authors might want to change gradually, but in modern development HTML5 should be the expectation, and the majority of authors will want to support all of these automatically.

To make this easier, I think we should be able to pass some form of truthy value into the html5 theme support that enables all HTML5 output.

Noted while looking into a related Gutenberg PR and observing that missing documentation was causing an HTML5 feature to be omitted in multiple places.

Change History (2)

This ticket was mentioned in PR #8465 on WordPress/wordpress-develop by @sainathpoojary.


7 weeks ago
#1

  • Keywords has-patch added; needs-patch removed

This PR enhances add_theme_support( 'html5' ) by allowing true as a shorthand to enable all HTML5-supported features. Previously, themes had to explicitly list each feature. This update simplifies adoption while maintaining backward compatibility.

Trac ticket: #63060

#2 @joedolson
7 weeks ago

  • Owner set to joedolson
  • Status changed from assigned to accepted
Note: See TracTickets for help on using tickets.