[buddypress-trac] [BuddyPress Trac] #7238: Change bp_sort_by_key() to allow key preservation.

buddypress-trac noreply at wordpress.org
Sat Sep 10 17:14:35 UTC 2016


#7238: Change bp_sort_by_key() to allow key preservation.
-------------------------+----------------------
 Reporter:  dcavins      |       Owner:  dcavins
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  2.7
Component:  Core         |     Version:  2.2
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |
-------------------------+----------------------
Changes (by dcavins):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"11082"]:
 {{{
 #!CommitTicketReference repository="" revision="11082"
 bp_sort_by_key(): Add $preserve_keys parameter.

 Add a parameter to `bp_sort_by_key()` so that it calls either `usort()`
 or `uasort()`, depending on the whether the array keys are important or
 not.

 Fixes #7238.
 }}}

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


More information about the buddypress-trac mailing list