Skip to:
Content

BuddyPress.org

Opened 6 years ago

Closed 6 years ago

#8449 closed enhancement (fixed)

Improve possible customization for invalid signup field error messages

Reported by: imath Owned by: imath
Priority: normal Milestone: 8.0.0
Component: Members Version: 1.5
Severity: normal 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 6 years ago.

Download all attachments as: .zip

Change History (2)

@imath
6 years ago

#1 @imath
6 years ago

  • Resolution → fixed
  • Status assigned → 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.