Skip to:
Content

BuddyPress.org

Changeset 3637


Ignore:
Timestamp:
01/01/2011 07:19:17 PM (14 years ago)
Author:
boonebgorges
Message:

Checks signup email against banned email domains list when available. Fixes #2630. Props j.conti

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-signup.php

    r3623 r3637  
    385385    if ( !is_email( $user_email ) )
    386386        $errors->add( 'user_email', __( 'Please check your email address.', 'buddypress' ) );
     387   
     388    if ( function_exists( 'is_email_address_unsafe' ) && is_email_address_unsafe( $user_email ) )
     389        $errors->add( 'user_email',  __( 'Sorry, that email address is not allowed!', 'buddypress' ) );
    387390
    388391    $limited_email_domains = get_site_option( 'limited_email_domains', 'buddypress' );
Note: See TracChangeset for help on using the changeset viewer.