#6691 closed defect (bug) (wontfix)
do_action( 'bp_group_members_list_item_action' ) inside bp_is_active check
Reported by: | modemlooper | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.7 |
Component: | Templates | Keywords: | dev-feedback 2nd-opinion |
Cc: |
Description
If friends is inactive then any group member list class="action" hooks do not fire.
do_action( 'bp_group_members_list_item_action' ) should be outside the if()
Change History (8)
#2
@
9 years ago
<div class="action"> <?php if ( bp_is_active( 'friends' ) ) : ?> <?php bp_add_friend_button( bp_get_group_member_id(), bp_get_group_member_is_friend() ); ?> <?php endif; ?> <?php /** * Fires inside the action section of an individual group member listing item. * * @since BuddyPress (1.1.0) */ do_action( 'bp_group_members_list_item_action' ); ?> </div>
#3
@
9 years ago
- Keywords 2nd-opinion added
- Milestone changed from 2.4.1 to Awaiting Review
- Version set to 1.7
Maybe use the 'bp_group_members_list_item'
hook instead if the Friends component is not active?
Note: See
TracTickets for help on using
tickets.
or better the friend button should be hooked to do_action( 'bp_group_members_list_item_action' ) and loaded if friends active :D