[buddypress-trac] [BuddyPress Trac] #8401: Group Types: the bp_group_type_list() template tag can output empty links

buddypress-trac noreply at wordpress.org
Fri Nov 20 17:47:40 UTC 2020


#8401: Group Types: the bp_group_type_list() template tag can output empty links
--------------------------+---------------------
 Reporter:  imath         |       Owner:  imath
     Type:  defect (bug)  |      Status:  closed
 Priority:  high          |   Milestone:  7.0.0
Component:  Groups        |     Version:
 Severity:  major         |  Resolution:  fixed
 Keywords:  has-patch     |
--------------------------+---------------------
Changes (by imath):

 * owner:  (none) => imath
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"12801" 12801]:
 {{{
 #!CommitTicketReference repository="" revision="12801"
 Group Types: improve the `bp_group_type_list()` template tag

 - Make sure to avoid displaying empty links if the Group Types object’s
 `has_directory` property is set to `false`.
 - To improve consistency with the Groups directory message informing it is
 filtered according to a Group Type, use singular Group Type names for the
 texts used into the list.
 - Edit The `$r['label']` argument of the ` bp_get_group_type_list()`
 function so that it accepts an array containing the plural & singular
 labels to use according to the Group's number of group types it is
 assigned to.
 - Ensure backward compatibility in case developers are still using a
 string for this `$r['label']` argument.

 Fixes #8401
 }}}

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


More information about the buddypress-trac mailing list