[buddypress-trac] [BuddyPress] #4483: Allow ASC and DESC sort in bp_has_groups()

buddypress-trac noreply at wordpress.org
Sun May 19 00:09:31 UTC 2013

#4483: Allow ASC and DESC sort in bp_has_groups()
 Reporter:  boonebgorges  |       Owner:  boonebgorges
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  1.8
Component:  Groups        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |

Comment (by boonebgorges):

 In [changeset:"7087"]:
 #!CommitTicketReference repository="" revision="7087"
 Introduces 'order' and 'orderby' parameters for the bp_has_groups() stack

 'order' and 'orderby' are more specific and flexible versions of the
 'type' parameter ('popular', 'newest', etc). Backward compatibility is
 maintained by always obeying 'type' when it is passed, and by internally
 converting the legacy 'type' values into the corresponding 'order' and
 'orderby' values.

 Adds unit tests to ensure that the adjusted default values for functions
 the stack are backward compatibile (in particular, the fact that the
 parameter is now empty by default, replaced with the corresponding default
 values for 'order' and 'orderby'). Unit tests are also added for the new
 params, as well as some internal utility methods.

 See #4483

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

More information about the buddypress-trac mailing list