#13086 closed defect (bug) (fixed)
Paginated comments return a 404 with custom post types
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.0 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Posts, Post Types | Keywords: | |
| Focuses: | Cc: |
Description
When using paginated comments with a custom post type, clicking on a comment permalink or a comment page gives a 404.
Steps to reproduce:
- Create a custom post type.
- Set the comments per page under Discussion Settings.
- Create enough comments for pagination on the singular view of a "post".
Change History (3)
Note: See
TracTickets for help on using
tickets.
Confirmed that Custom post types do not receive the comment paging rewrite rules.
Comes down to our nice friend, Rewrite Endpoint bitmasks, Turns out, EP_NONE will not receive comment paging links, as EP_NONE & EP_NONE == 0, which results in it being skipped over..
Obvious solution here is to change custom post url's from EP_NONE to EP_PERMALINK, which should be alright considering that they're Permalinks to objects.