[wp-trac] [WordPress Trac] #19493: post and archive pagination don't work with custom endpoints

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 28 18:31:33 UTC 2012


#19493: post and archive pagination don't work with custom endpoints
---------------------------+------------------------------
 Reporter:  mintindeed     |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Rewrite Rules  |     Version:  2.1
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |
---------------------------+------------------------------
Changes (by WraithKenny):

 * cc: Ken@… (added)


Comment:

 I was working from a variation of westi's code from
 http://core.trac.wordpress.org/ticket/16303#comment:1 and the json
 endpoint breaks on paged urls: example.com/json/ works, and
 example.com/page/2/ works, but example.com/page/2/json/ fails has_posts()
 because $wp_query contains query->attachment and query_vars->attachment
 are set to "2" for some reason in addition to json being set true.

 Pretty sure this is related? Fits the title at least.

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


More information about the wp-trac mailing list