Ticket #6650 (closed defect (bug): fixed)
PATHINFO permalinks structure broken in 2.5
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | highest omg bbq | Milestone: | 2.5.1 |
| Component: | General | Version: | 2.5 |
| Severity: | blocker | Keywords: | page permalink pathinfo rewrite.php |
| Cc: |
Description
The PATHINFO permalink structure /index.php/%category%/%postname%/ leads to a "page not found" error when clicking on a page URL (but not on a post or category URL).
It seems that PATHINFO permalink structure beginning with /index.php/%category% or /index.php/%postname% or /index.php/%tag% or /index.php/%author% is broken for pages in WP 2.5 when it was valid in WP 2.3.3.
To get access to the pages, you have to change the PATHINFO permalink to /index.php/%year%/%category%/%postname%/, for instance.
Attachments
Change History
- Summary changed from /index.php/%category%/%postname%/ permalink broken in 2.5 to PATHINFO permalinks structure broken in 2.5
- Status changed from new to closed
- Resolution set to fixed
Note: See
TracTickets for help on using
tickets.


It looks like I found the solution:
Add a test in init() function of wp-includes/rewrite.php to check if we're using PATHINFO permalinks and thus, generate verbose page permalinks.
Code snippet: