[wp-trac] [WordPress Trac] #41837: WP_User_Query can generate negative offset in the LIMIT clause

WordPress Trac noreply at wordpress.org
Fri Sep 8 18:28:51 UTC 2017


#41837: WP_User_Query can generate negative offset in the LIMIT clause
--------------------------------------+------------------------------
 Reporter:  birgire                   |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Users                     |     Version:  4.4
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+------------------------------
Changes (by birgire):

 * keywords:   => has-patch has-unit-tests


Comment:

 Here we focus on the calculated offset in the LIMIT clause.

 The pagination setup is made similar to the one in the other query
 classes.

 Included is a test for this case.

 @SergeyBiryukov Thanks for fixing the typo in the description

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


More information about the wp-trac mailing list