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

WordPress Trac noreply at wordpress.org
Tue Oct 13 03:25:44 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:
--------------------------+-----------------------------

Comment (by boonebgorges):

 In [changeset:"35123"]:
 {{{
 #!CommitTicketReference repository="" revision="35123"
 Correct expected counts in `WP_User_Query` 'number' test.

 The `create_many()` number should be padded by just one, to account for
 the
 user created by the test suite. Introduced in [35114].

 We also don't have to create so many fixtures to run this test.

 See #28631.
 }}}

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


More information about the wp-trac mailing list