Make WordPress Core

Opened 7 months ago

#57135 new enhancement

TT3: Adopt postTypes for header/footer patterns

Reported by: dsas's profile dsas Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.1
Component: Themes Keywords:
Focuses: Cc:

Description

The Twenty Twenty-Three header and footer patterns are listed in the inserter when creating posts and pages, as well as when editing templates and template parts.

Is there a good reason for header and footer patterns to be available in the inserter when creating posts and pages?

Since 6.1 patterns can have postTypes which limits where a pattern can be used. Setting postTypes to ['wp_template', 'wp_template_part'] on header/footer patterns will mean that the patterns don't show up when editing pages/posts but will show up when editing templates and template parts. Currently the TT3 patterns don't use the postTypes property at all

Change History (0)

Note: See TracTickets for help on using tickets.