[wp-trac] [WordPress Trac] #59635: Revise the regular expressions defining endpoints for template revisions, template autosaves, template part revisions, and template part autosaves endpoints

WordPress Trac noreply at wordpress.org
Fri Oct 20 20:02:17 UTC 2023


#59635: Revise the regular expressions defining endpoints for template revisions,
template autosaves, template part revisions, and template part autosaves
endpoints
---------------------------+------------------------------
 Reporter:  antonvlasenko  |       Owner:  antonvlasenko
     Type:  enhancement    |      Status:  assigned
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  REST API       |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  rest-api
---------------------------+------------------------------

Comment (by antonvlasenko):

 I'm thinking to myself, maybe it's fine to have the current regular
 expressions, as a theme can also be a child theme. Thus, the template ID
 could have the following structure:
 `<parent_theme>/<child_theme>/template_name`. I'm testing different
 scenarios.

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


More information about the wp-trac mailing list