~vcs-imports/buddypress/trunk

Viewing all changes in revision 9736.

  • Committer: imath
  • Date: 2020-11-20 17:47:32 UTC
  • Revision ID: svn-v4:cdf35c40-ae34-48e0-9cc9-0c9da1808c22:trunk: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

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: