[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 13:30:06 UTC 2021


#8567: Newly introduced `bp_get_group()` should be less restrictive checking the
Group object
--------------------------+-----------------------
 Reporter:  imath         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  10.0.0
Component:  Groups        |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 When listing Groups within the Groups WP Administration screen
 `bp_get_group_permalink()` is generating a notice error since [13085].
 Reason is the `BP_Groups_List_Table` is not using a `BP_Groups_Group` but
 a standard object. As it's possible to use a custom class to set a Group
 object (see https://buddypress.trac.wordpress.org/browser/trunk/src/bp-
 groups/classes/class-bp-groups-component.php#L251) I believe we should
 allow a regular object having an `id` property.

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


More information about the buddypress-trac mailing list