[wp-trac] [WordPress Trac] #38182: rest_url does not support index permalinks
WordPress Trac
noreply at wordpress.org
Mon Oct 17 14:25:23 UTC 2016
#38182: rest_url does not support index permalinks
---------------------------------------------+----------------------
Reporter: kraftbj | Owner: kraftbj
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests commit | Focuses:
---------------------------------------------+----------------------
Comment (by kraftbj):
@dd32 We would want to make sure sites not using index permalinks still
work without the extra rule. `$wp_rewrite->index` would always be set too,
so need to check for `$wp_rewrite->using_index_permalinks()` before adding
conditional support (which probably should have a better helpful function
per https://core.trac.wordpress.org/ticket/38182#comment:2 ).
I agree it looks like we can update the rewrite rule additions to be
smarter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38182#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list