[buddypress-trac] [BuddyPress Trac] #6865: `bp_activity_get_actions()` should only sort when necessary

buddypress-trac noreply at wordpress.org
Tue Feb 2 03:53:09 UTC 2016

#6865: `bp_activity_get_actions()` should only sort when necessary
 Reporter:  boonebgorges          |       Owner:
     Type:  enhancement           |      Status:  new
 Priority:  normal                |   Milestone:  2.5
Component:  Component - Activity  |     Version:
 Severity:  normal                |  Resolution:
 Keywords:  has-patch             |

Comment (by boonebgorges):

 [attachment:6865.diff] is a simple way to avoid unnecessary sorts.

 The one thing I'm unsure about is whether this will cover the *initial*
 sort - ie, the first time `bp_activity_get_actions()` is called. We might
 need a one-time sort routine to run after all native components have
 registered their actions, in addition to the just-in-time sorting
 recommended by [attachment:6865.diff]. @imath, do you have any thoughts
 about this?

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6865#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list