Skip to:
Content

BuddyPress.org

Opened 12 years ago

Closed 12 years ago

#4486 closed enhancement (fixed)

Use bp_core_validate_email_address() at registration

Reported by: boonebgorges's profile boonebgorges Owned by: boonebgorges's profile boonebgorges
Milestone: 1.7 Priority: low
Severity: minor Version:
Component: Core Keywords:
Cc:

Description

In r6279, bp_core_validate_email_address() was introduced to consolidate some of the disparate email checks done by WP and BP into a single, reusable function. For BP 1.7, we should ensure that this function is used wherever email validation is done in BP, in particular during the registration process, in order to reduce reduplication of code.

Change History (1)

#1 @boonebgorges
12 years ago

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

(In [6336]) Use bp_core_validate_email_address() during registration

This centralizes email validation between registration and the Settings
component.

Also introduces bp_core_add_validation_errors(), a utility function for
converting the return value of validation functions into WP_Error-style
messages. This can be used in the future, if better username validation
functions are introduced.

Fixes #4486

Note: See TracTickets for help on using tickets.