[wp-trac] [WordPress Trac] #13086: Paginated comments return a 404 with custom post types

WordPress Trac wp-trac at lists.automattic.com
Sat Apr 24 14:36:26 UTC 2010


#13086: Paginated comments return a 404 with custom post types
--------------------------+-------------------------------------------------
 Reporter:  greenshady    |       Owner:  dd32    
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  3.0     
Component:  Post Types    |     Version:  3.0     
 Severity:  normal        |    Keywords:          
--------------------------+-------------------------------------------------
Changes (by dd32):

  * keywords:  needs-patch =>
  * owner:  => dd32
  * status:  new => accepted


Comment:

 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13086#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list