[wp-trac] [WordPress Trac] #38182: rest_url does not support index permalinks
WordPress Trac
noreply at wordpress.org
Wed Sep 28 20:24:52 UTC 2016
#38182: rest_url does not support index permalinks
--------------------------+------------------------------
Reporter: kraftbj | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by kraftbj):
* milestone: 4.7 => Awaiting Review
Comment:
I've attached an ugly patch to resolve this that:
1. Provides the index permalink style when that's being used.
2. Adds the rest end points to the index.php permalink style.
To do this *right*, I'm thinking we should figure out:
1. A better way to check for index permalinks. Calling the global is ugly.
Add helper functions.
2. Why is the REST API rewrites added separately? Should we integrate them
into the actual rewrite class?
38182.diff may be okay for a maintenance release.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38182#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list