#6650 closed defect (bug) (fixed)
PATHINFO permalinks structure broken in 2.5
Reported by: | dlo | Owned by: | ryan |
---|---|---|---|
Milestone: | 2.5.1 | Priority: | highest omg bbq |
Severity: | blocker | Version: | 2.5 |
Component: | General | Keywords: | page permalink pathinfo rewrite.php |
Focuses: | 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 (1)
Change History (7)
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: