[buddypress-trac] [BuddyPress Trac] #7419: Use BP_Groups_Group::get() where possible.
buddypress-trac
noreply at wordpress.org
Tue Jan 10 15:00:48 UTC 2017
#7419: Use BP_Groups_Group::get() where possible.
-------------------------+------------------------------
Reporter: dcavins | Owner: dcavins
Type: enhancement | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version: 2.7.2
Severity: normal | Resolution:
Keywords: has-patch |
-------------------------+------------------------------
Comment (by Mamaduka):
@dcavins I think we can update them to use `BP_Groups_Group::get()` and
deprecate them as well. Have seen similar cases in core before (e.g. see
`bp_activity_get_sitewide()`).
We can't fully move methods into deprecated files, like we do with
functions. Unless we introduce `__callStatic` magic method (PHP >= 5.3)
and handle argument logic there. Probably not worth of dev time IMO.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7419#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list