Opened 3 years ago
Closed 3 years ago
#8865 closed defect (bug) (fixed)
Filtering nouveau members buttons causing notice
| Reported by: | raviousprime | Owned by: | imath |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.0.0 |
| Component: | Templates | Version: | 3.0.0 |
| Severity: | normal | 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
I’ll have a look at it asap.
Thanks for your report.