[buddypress-trac] [BuddyPress Trac] #6889: Remove usage of deprecated BP_Core_User::get_users()

buddypress-trac noreply at wordpress.org
Sun Nov 6 01:20:12 UTC 2016


#6889: Remove usage of deprecated BP_Core_User::get_users()
----------------------------------------+-----------------------
 Reporter:  tw2113                      |       Owner:  tw2113
     Type:  enhancement                 |      Status:  accepted
 Priority:  normal                      |   Milestone:  2.8
Component:  Core                        |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch good-first-bug  |
----------------------------------------+-----------------------

Comment (by tw2113):

 Unless I'm mixing things up, I believe it should go as such. From:
 {{{
 return apply_filters( 'friends_get_recently_active',
 BP_Core_User::get_users( 'active', $per_page, $page, $user_id, $filter )
 );
 }}}

 To:
 {{{
 return apply_filters( 'friends_get_recently_active', BP_User_Query( array(
 'type' => 'active', 'per_page' => $per_page, 'page' => $page, 'user_id'
 => $user_id, 'include' => $filter ) ) );
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6889#comment:8>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list