[buddypress-trac] [BuddyPress Trac] #5508: improve filterability (sorting) of Activity loop

buddypress-trac noreply at wordpress.org
Wed Nov 9 23:45:30 UTC 2016


#5508: improve filterability (sorting) of Activity loop
-------------------------+-----------------------------
 Reporter:  mpa4hu       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Activity     |     Version:  2.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------------
Changes (by slaFFik):

 * keywords:   => has-patch


Comment:

 We already have filters for SQL.
 Adding only to `$sort` will question the need to add to other parts of the
 query separately as well. And imo it will be overkill.

 @boonebgorges
 I propose to do something like this:

 {{{
 // Sorting.
 $sort = $r['sort'];
 if ( empty( $sort ) ) {
         $sort = 'DESC';
 }
 }}}

 Thus passing a param `'sort'` will give ability to redefine this without a
 special filter.

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


More information about the buddypress-trac mailing list