[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 16:53:03 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        |  Resolution:
 Keywords:  has-patch     |
--------------------------+---------------------

Comment (by espellcaste):

 My only concern there is that you can pass an object which might not be
 actually a `BP_Groups_Group` object.

 What about updating `$view_url = bp_get_group_permalink( $item_obj );` and
 pass the object ID instead of the object itself?

 I'm fine with either option. But I'd lean on updating the `column_comment`
 method.

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


More information about the buddypress-trac mailing list