[wp-trac] [WordPress Trac] #54596: Block theme with period in name causes blank editor
WordPress Trac
noreply at wordpress.org
Tue Dec 14 18:22:21 UTC 2021
#54596: Block theme with period in name causes blank editor
-------------------------------------------------+-------------------------
Reporter: mkaz | Owner:
| hellofromTonya
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.9
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-testing-info has- | Focuses:
unit-tests commit |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):
* status: accepted => closed
* resolution: => fixed
Comment:
In [changeset:"52376" 52376]:
{{{
#!CommitTicketReference repository="" revision="52376"
REST API: Add block theme support for valid non-alphanumeric characters in
theme's directory name.
Themes whose `wp-content/themes/<dirname>` include valid non-alphanumeric
(cross-platform) characters work for non-block themes, but did not
previously resolve for block themes. For example, a block theme in `wp-
content/themes/twentytwentytwo-0.4.0/` directory resulted a 404 "No route
was found matching the URL and request method" response when attempting to
customize it in the Site Editor.
This commit adds support for the following characters in a theme's root
directory: `_`, `.`, `@`, `[`, `]`, `(`, and `)`. Subdirectory themes and
`-` are already supported.
Follow-up to [51003], [52051], [52275].
Props mkaz, costdev, hellofromTonya, jffng, justinahinon, peterwilsoncc,
spacedmonkey, TimothyBlynJacobs.
Fixes #54596.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54596#comment:30>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list