#16807 closed defect (bug) (fixed)
with_front => false doesn't work with PATHINFO permalinks
Reported by: | duck_ | Owned by: | |
---|---|---|---|
Milestone: | 3.1.1 | Priority: | normal |
Severity: | normal | Version: | 3.0 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
When running WordPress with PATHINFO permalinks any plugin registering a custom post type or custom taxonomy using with_front => false
in the rewrite argument just will not work since the /index.php is required.
/index.php cannot be treated like any other front since it is actually required for the permalinks to work.
We might want to internalize PATHINFO into WP_Rewrite so it doesn't get stripped like this.
Related: #16733
Attachments (3)
Change History (10)
#2
@
14 years ago
To test, drop cpt-test.php into mu-plugins. Set your permalink structure to start with:
(A) /index.php/
OR
(B) /index.php/archives/
Create a "Thing" entry called "thing-test"
Verify that http://wp.dev/index.php/things/ and http://wp.dev/index.php/things/thing-test/ work.
In the case of (B), you shouldn't see /archives/
appear in those URLs, because with_front is false.
Also related: #16626