[wp-trac] [WordPress Trac] #53176: Block Editor: Backport the FSE infrastructure required to make the template editor work for classic themes.

WordPress Trac noreply at wordpress.org
Wed May 19 13:40:21 UTC 2021


#53176: Block Editor: Backport the FSE infrastructure required to make the template
editor work for classic themes.
----------------------------+---------------------
 Reporter:  youknowriad     |       Owner:  (none)
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  5.8
Component:  Editor          |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+---------------------

Comment (by Bernhard Reiter):

 What `get_{type}_template` and `{type}_template_hierarchy` cannot really
 capture is the presence of `wp_template` post objects as template
 candidates. The obvious place for this to go is probably `locate_template`
 -- which would mean changing its character rather significantly, from a
 rather simple check for existence of a file at a given path to something
 that also involves a moderately complex DB query. Combined with the ideas
 laid out in the previous comment(s), `locate_template` would check for the
 existence of a `wp_template` object for each `.html` file it sees in the
 `$templates` candidates array.

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


More information about the wp-trac mailing list