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

buddypress-trac noreply at wordpress.org
Thu Dec 8 02:22:23 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:  Friends      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by boonebgorges):

 I'm getting PHP notices when running the tests *before* applying
 [attachment:6889-remove-bp-core-user-use-version3.diff]. I think it's
 because `bp_core_get_users()` returns `WP_User` objects (which have an
 `ID` property) while the legacy function does not. This suggests that a
 bit more exploration should be done surrounding back compat :)

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


More information about the buddypress-trac mailing list