Opened 18 months ago
Closed 18 months ago
#8865 closed defect (bug) (fixed)
Filtering nouveau members buttons causing notice
Reported by: | raviousprime | Owned by: | imath |
---|---|---|---|
Milestone: | 12.0.0 | Priority: | normal |
Severity: | normal | Version: | 3.0.0 |
Component: | Templates | Keywords: | has-patch |
Cc: |
Description
When i am trying to reset members buttons in loop on my custom screen causing array to string notice
<?php // Current version of plugin $buttons_group = apply_filters( 'bp_nouveau_get_members_buttons', $buttons, $user_id, $type, $args ); if ( ! $buttons_group ) { return $buttons; }
My fix
<?php $buttons_group = apply_filters( 'bp_nouveau_get_members_buttons', $buttons, $user_id, $type, $args ); if ( ! $buttons_group ) { // empty array or buttons group itself. return $buttons_group; }
Please have a look.
Change History (3)
Note: See
TracTickets for help on using
tickets.
I’ll have a look at it asap.
Thanks for your report.