Skip to:
Content

BuddyPress.org

Opened 7 months ago

Closed 7 months ago

#8449 closed enhancement (fixed)

Improve possible customization for invalid signup field error messages

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

Description

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 7 months ago.

Download all attachments as: .zip

Change History (2)

@imath
7 months ago

#1 @imath
7 months 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.