[buddypress-trac] [BuddyPress Trac] #8567: Newly introduced `bp_get_group()` should be less restrictive checking the Group object

buddypress-trac noreply at wordpress.org
Sat Sep 11 19:56:32 UTC 2021


#8567: Newly introduced `bp_get_group()` should be less restrictive checking the
Group object
------------------------------+---------------------
 Reporter:  imath             |       Owner:  imath
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  10.0.0
Component:  Groups            |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by imath):

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


Comment:

 In [changeset:"13107" 13107]:
 {{{
 #!CommitTicketReference repository="" revision="13107"
 Be less restrictive when checking the Group object in `bp_get_group()`

 1. The Groups WP Admin Screen is using a standard object to build Groups
 permalink.
 2. The current Group's object can be set using a different class than
 `BP_Groups_Group` using the `'bp_groups_current_group_class'` filter.

 For this 2 reasons, we need to adapt `bp_get_group()` so that a standard
 object having an `id` property can be used as the `$group` function's
 parameter.

 Props espellcaste

 Fixes #8567
 }}}

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


More information about the buddypress-trac mailing list