[wp-trac] [WordPress Trac] #54507: Site Editor does not load when using "almost pretty" permalinks
WordPress Trac
noreply at wordpress.org
Thu Nov 25 13:47:15 UTC 2021
#54507: Site Editor does not load when using "almost pretty" permalinks
--------------------------+---------------------
Reporter: noisysocks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.9
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Comment (by TimothyBlynJacobs):
That's unfortunate.
Yeah the issue with giving these routes URLs based on their resources is
that a theme identifier can have a slash when a subdirectory theme is in
use, for instance `theme-experiments/tt1-blocks`, but the template part
can also have an arbitrary series of slashes.
This is the problem we were running into originally:
https://github.com/WordPress/gutenberg/pull/27910/commits/b637fe353b4f2c4763ee59a0ebeb8312baa6172a#r553288550
Does the "correct" route appear anywhere in `$_SERVER`?
We may need to figure out a way to percent encode slashes in the theme
identifier or template parts instead and then transform that back when
passing the ID to the internal API functions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54507#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list