| 1 | Index: wp-includes/ms-functions.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/ms-functions.php (revision 18843) |
|---|
| 4 | +++ wp-includes/ms-functions.php (working copy) |
|---|
| 5 | @@ -504,7 +504,7 @@ function wpmu_validate_user_signup($user_name, $user_email) { |
|---|
| 6 | $limited_email_domains = get_site_option( 'limited_email_domains' ); |
|---|
| 7 | if ( is_array( $limited_email_domains ) && empty( $limited_email_domains ) == false ) { |
|---|
| 8 | $emaildomain = substr( $user_email, 1 + strpos( $user_email, '@' ) ); |
|---|
| 9 | - if ( in_array( $emaildomain, $limited_email_domains ) == false ) |
|---|
| 10 | + if ( ! apply_filters( 'limited_email_domains_check', in_array( $emaildomain, $limited_email_domains ), $emaildomain, $limited_email_domains ) ) |
|---|
| 11 | $errors->add('user_email', __('Sorry, that email address is not allowed!')); |
|---|
| 12 | } |
|---|
| 13 | |
|---|