[buddypress-trac] [BuddyPress] #1991: bp_has_members - can't set unlimited per_page

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Wed Feb 17 22:05:37 UTC 2010


#1991: bp_has_members - can't set unlimited per_page
-------------------+--------------------------------------------------------
Reporter:  DJPaul  |       Owner:       
    Type:  defect  |      Status:  new  
Priority:  minor   |   Milestone:  1.2.1
Keywords:          |  
-------------------+--------------------------------------------------------
 Using bp_has_members(), it is impossible to fetch a list of all of the
 members (i.e. one page, all users). The problem is that when the per_page
 value gets to, for example, get_users(), that function's $limit variable
 is actually a string so it passes as true for this check (on line 179 as
 per BP 1.2):

 {{
 if ( $limit && $page )
 }}

-- 
Ticket URL: <http://trac.buddypress.org/ticket/1991>
BuddyPress <http://buddypress.org/>
BuddyPress


More information about the buddypress-trac mailing list