[buddypress-trac] [BuddyPress Trac] #5669: Help plugins to generate activities for their post type(s)
buddypress-trac
noreply at wordpress.org
Wed Nov 26 18:21:43 UTC 2014
#5669: Help plugins to generate activities for their post type(s)
-----------------------------------+------------------
Reporter: imath | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.2
Component: Activity | Version: 2.0
Severity: normal | Resolution:
Keywords: 2nd-opinion has-patch |
-----------------------------------+------------------
Comment (by boonebgorges):
In [changeset:"9191"]:
{{{
#!CommitTicketReference repository="" revision="9191"
Introduce `bp_sort_by_key()`.
A companion for `bp_alpha_sort_by_key()`, this function allows arrays of
objects or associative arrays to be sorted according to one of their keys/
properties - a kinda-sorta version of `wp_list_pluck()` for sorting.
Supports
numeric as well as alphabetical sorts.
`bp_alpha_sort_by_key()` is converted to a wrapper of the new function.
Fixes #6047. See #5669.
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5669#comment:23>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list