Opened 8 years ago
Closed 8 years ago
#7069 closed defect (bug) (fixed)
$group object should be supplied to bp_get_group_name filter in bp-groups-admin.php
Reported by: | garrett-eclipse | Owned by: | boonebgorges |
---|---|---|---|
Milestone: | 2.6 | Priority: | normal |
Severity: | normal | Version: | 2.5.0 |
Component: | Groups | Keywords: | |
Cc: |
Description
In BP 2.5 the $group object was supplied to the bp_get_group_name filter as outlined in this ticket;
https://buddypress.trac.wordpress.org/ticket/6752
I noticed in bp-groups-admin.php there's a reference to this filter but it's missing the $group object;
<?php $group_name = isset( $group->name ) ? apply_filters( 'bp_get_group_name', $group->name ) : '';
Will need to be updated to also supply the $group object.
Thanks
Change History (4)
Note: See
TracTickets for help on using
tickets.
I found another instance in bp-groups-template.php;
The apply_filters should include $current_group as the group object in this case as follows;
Cheers