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

buddypress-trac noreply at wordpress.org
Fri Sep 9 20:39:52 UTC 2016


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

 * keywords:  has-patch commit => has-patch


Comment:

 The fact that a tests is failing suggests to me that we should take the
 conservative route, and add the `preserve_keys` parameter. This is a semi-
 standard convention in PHP's array functions, so I think it's transparent
 enough.

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


More information about the buddypress-trac mailing list