63 | | However, the controllers expect the `template_id` and `template_part_id` to always follow the format `theme_name//<template(_part)_name`. In practice, it's not possible to retrieve a template or template part using only their template name (i.e., `post_name`). The `get_block_template()` function, employed by both REST controllers, presumes that the ID is divided into two parts separated by `//`. The theme's name must always be included in the request alongside the template (part) name. Should we adjust the regex expressions for the REST routes to consistently expect the presence of the `theme_name`? |
| 63 | However, the controllers expect the `template_id` and `template_part_id` to always follow the format `theme_name//<template(_part)_name`. In practice, it's not possible to retrieve a template or template part using only their template name (i.e., `post_name`). The `get_block_template()` function, employed by both REST controllers, presumes that the ID is divided into two parts separated by `//`. The theme's name must always be included in the request alongside the template (part) name. Should we adjust the regular expressions for the REST routes to consistently expect the presence of the `theme_name`? |