[buddypress-trac] [BuddyPress] #5271: BP_User_Query - user_ids parameter breaks pagination
buddypress-trac
noreply at wordpress.org
Mon Dec 9 14:18:51 UTC 2013
#5271: BP_User_Query - user_ids parameter breaks pagination
--------------------------+--------------------
Reporter: shanebp | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 1.9
Component: Core | Version: 1.8.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by imath):
Replying to [comment:6 boonebgorges]:
> Good catch, imath.
Thanks Boone, actually at first i did what you did in 5271.02.patch. The
problem with this technique is that in this case if the array of user ids
contains an id that doesn't exist, then the number of members displayed
can be different than the total.
Example : the array( 1, 2, 9999999) will give you a total of 3 with your
technique, but if 9999999 id doesn't exist it won't be displayed so the
total is 3 and the number of displayed members is 2.
That's why i've chosen this part because we're sure to have a consistent
total.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5271#comment:7>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list