[buddypress-trac] [BuddyPress Trac] #6496: BP_User_Query may return wrong total if WP_User query was filtered

buddypress-trac noreply at wordpress.org
Thu Jun 11 19:46:30 UTC 2015


#6496: BP_User_Query may return wrong total if WP_User query was filtered
---------------------------------+-----------------------------
 Reporter:  tanner m             |      Owner:
     Type:  defect (bug)         |     Status:  new
 Priority:  normal               |  Milestone:  Awaiting Review
Component:  Component - Members  |    Version:
 Severity:  normal               |   Keywords:
---------------------------------+-----------------------------
 I am working on a site that is using the bp-profile-visibility plugin
 which filters the WP_User_Query to hide profiles. Since the BP_User_Query
 class does not sync with the WP_User_Query totals if it already has a
 total, the actual total count from the WP_User_Query query can very from
 the initial count from BP_User_Query.

 I am attaching a patch that will update the BP_User_Query total with the
 actual results count from the WP_User_Query.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6496>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list