#13086 closed defect (bug) (fixed)
Paginated comments return a 404 with custom post types
| Reported by: | greenshady | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | Posts, Post Types | Version: | 3.0 |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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".
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.