[wp-trac] [WordPress Trac] #54829: Allow classic themes to be optionally block themes if 'templates' and 'parts' folders exists
WordPress Trac
noreply at wordpress.org
Sat Jan 15 22:42:45 UTC 2022
#54829: Allow classic themes to be optionally block themes if 'templates' and
'parts' folders exists
-------------------------------------------+------------------------------
Reporter: exstheme | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Themes | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch reporter-feedback | Focuses:
-------------------------------------------+------------------------------
Changes (by costdev):
* keywords: needs-patch => needs-patch reporter-feedback
Comment:
Hi @exstheme! Welcome to Trac and thanks for opening this ticket.
I'm assuming that this is an example use case:
- A theme wants to offer its users the option of 1) Using Blocks or 2)
Using a "Classic" approach to create/manage their website.
- If the user selects "Blocks", `WP_Theme::is_block_theme()` should return
`true`, provided that prerequisites are met.
- The "Site Editor" will be available.
- The "Customizer" will also be available, but only if
`customize_register` has been hooked.
- If the user selects "Classic", then `WP_Theme::is_block_theme()` should
''always'' return `false`, even if prerequisites for a block theme have
been met.
- The "Site Editor" will not be available.
- The "Customizer" will be available.
Would satisfying this use case also satisfy your own use case?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54829#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list