[wp-trac] [WordPress Trac] #28631: WP_User_Query should support -1 for the number parameter

WordPress Trac noreply at wordpress.org
Tue Oct 13 02:39:07 UTC 2015


#28631: WP_User_Query should support -1 for the number parameter
--------------------------+-----------------------------
 Reporter:  mordauk       |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  Users         |     Version:  4.0
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"35114"]:
 {{{
 #!CommitTicketReference repository="" revision="35114"
 Users: allow `-1` (no limit, use with extreme caution on large sites) as
 the value for `number` in `WP_User_Query` - similar to `posts_per_page =>
 -1` in `WP_Query`.

 Adds unit tests.

 Props mordauk, jesin, nofearinc.
 Fixes #28631.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28631#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list