Skip to:
Content

BuddyPress.org

Opened 5 years ago

Closed 5 years ago

#5678 closed defect (bug) (fixed)

BP Signups WP List Tables need to have a column_default method

Reported by: imath Owned by: imath
Milestone: 2.1 Priority: normal
Severity: normal Version: 2.0
Component: Members Keywords: has-patch
Cc:

Description

In BP Signups WP List Tables, there are two filters to add custom column headers to the table :

  • In mulitisite : 'bp_members_ms_signup_columns'
  • In non multisite : 'bp_members_signup_columns'

If a plugin is adding a new column header for instance, we get this error:

Fatal error: Maximum function nesting level of '100' reached, aborting!

I suggest to add the column_default() method to BP_Members_List_Table & BP_Members_MS_List_Table to avoid it.

Attachments (1)

5678.patch (1.3 KB) - added by imath 5 years ago.

Download all attachments as: .zip

Change History (2)

@imath
5 years ago

#1 @imath
5 years ago

  • Owner set to imath
  • Resolution set to fixed
  • Status changed from new to closed

In 8472:

Allow plugins to add a custom column in Signup WP_List_Tables

Thanks to a new "column_default()" function in "BP_Members_List_Table" and in "BP_Members_MS_List_Table" (multisite), plugins will be able to add data rows to the eventual custom columns they created using the filters "bp_members_signup_columns" and "bp_members_ms_signup_columns".

Fixes #5678

Note: See TracTickets for help on using tickets.