#16807 closed defect (bug) (fixed)
with_front => false doesn't work with PATHINFO permalinks
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1.1 |
| Component: | General | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| 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)
markjaquith — 2 years ago
markjaquith — 2 years ago
comment:2
markjaquith — 2 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.
comment:5
markjaquith — 2 years ago
- Resolution set to fixed
- Status changed from new to closed

Also related: #16626