[wp-trac] [WordPress Trac] #37056: paginate_links should be a method on WP_Query

WordPress Trac noreply at wordpress.org
Wed Jun 8 22:21:11 UTC 2016


#37056: paginate_links should be a method on WP_Query
-------------------------+-----------------------------
 Reporter:  jfarthing84  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 How do we paginate custom or subqueries when `paginate_links` relies upon
 the global `$wp_query` variable?

 It's easy. We make `paginate_links` a method on the `WP_Query` object.
 Then the function `paginate_links` can rely upon the method. Likewise with
 `get_the_posts_pagination`, with a way to pass query context.

 I'll get around to a patch when I can.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37056>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list