Skip to:

Opened 3 years ago

Closed 3 years ago

#8449 closed enhancement (fixed)

Improve possible customization for invalid signup field error messages

Reported by: imath's profile imath Owned by: imath's profile imath
Milestone: 8.0.0 Priority: normal
Severity: normal Version: 1.5
Component: Members Keywords: has-patch


The hooks to customize invalid signup field error messages are relying on an anonymous function which only include the error message HTML output. As the filter to customize this message bp_members_signup_error_message is not dynamic, to make sure to customize the message for a specific signup field, we need to add a parameter to transport the field name.

Attachments (1)

8449.patch (1.4 KB) - added by imath 3 years ago.

Download all attachments as: .zip

Change History (2)

3 years ago

#1 @imath
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 12875:

Improve possible customization of invalid signup field error message

Adds a new parameter ($fieldname) to the anonymous function firing the bp_members_signup_error_message and includes it into the filter params.

It's now easier to customize the error message according to the concerned invalid signup field name.

Fixes #8449

Note: See TracTickets for help on using tickets.