[buddypress-trac] [BuddyPress Trac] #6259: user_name / username checks in bp_core_validate_user_signup
buddypress-trac
noreply at wordpress.org
Thu Mar 5 11:10:19 UTC 2015
#6259: user_name / username checks in bp_core_validate_user_signup
---------------------------------+-----------------------------
Reporter: anthony.bartoli | Owner:
Type: idea | Status: new
Priority: normal | Milestone: Future Release
Component: Component - Members | Version: 2.2.1
Severity: normal | Resolution:
Keywords: |
---------------------------------+-----------------------------
Comment (by anthony.bartoli):
Thanks everyone for your feedback.
How about adding an additional check for a plugin's implementation similar
to how we hand off validation to MS? Like this:
{{{
if ( function_exists( 'wpmu_validate_user_signup' ) ) {
$result = wpmu_validate_user_signup( $user_name,
$user_email );
// Or allow developers to do their own validation...
} elseif ( function_exists( 'bp_plugin_validate_user_signup' ) ) {
$result = bp_plugin_validate_user_signup( $user_name,
$user_email ); //implement this in plugins/bp-custom.php
//Otherwise, perform our default validation
else{
//current BP checks
}
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6259#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list