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

WordPress Trac noreply at wordpress.org
Wed Jun 25 20:49:44 UTC 2014


#28631: WP_User_Query should support -1 for the number parameter
-------------------------+------------------------------
 Reporter:  mordauk      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Users        |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by nofearinc):

 * keywords:   => has-patch


Comment:

 WP_Query has a `nopaging` argument that's true or false which defines
 whether we add or not the LIMIT statement, a simple check for a positive
 number could probably solve that. I'm not sure if a `intval` call should
 be used as well to prevent floating point numbers, but that quick check
 ignores the limits for all non-negative numbers and zero.

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


More information about the wp-trac mailing list