[buddypress-trac] [BuddyPress Trac] #7069: $group object should be supplied to bp_get_group_name filter in bp-groups-admin.php
buddypress-trac
noreply at wordpress.org
Tue May 17 20:06:16 UTC 2016
#7069: $group object should be supplied to bp_get_group_name filter in bp-groups-
admin.php
--------------------------------+------------------------------
Reporter: garrett-eclipse | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Groups | Version: 2.5.0
Severity: normal | Resolution:
Keywords: |
--------------------------------+------------------------------
Comment (by garrett-eclipse):
I found another instance in bp-groups-template.php;
{{{#!php
<?php
/** This filter is documented in bp-groups/bp-groups-template.php */
$name = apply_filters( 'bp_get_group_name',
$current_group_name );
}}}
The apply_filters should include $current_group as the group object in
this case as follows;
{{{#!php
<?php
/** This filter is documented in bp-groups/bp-groups-template.php */
$name = apply_filters( 'bp_get_group_name',
$current_group_name, $current_group );
}}}
Cheers
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7069#comment:1>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list