@@ 2875-2878 (lines=4) @@ | ||
2872 | } |
|
2873 | ||
2874 | // Test for an @ character after the first position |
|
2875 | if ( strpos( $email, '@', 1 ) === false ) { |
|
2876 | /** This filter is documented in wp-includes/formatting.php */ |
|
2877 | return apply_filters( 'is_email', false, $email, 'email_no_at' ); |
|
2878 | } |
|
2879 | ||
2880 | // Split out the local and domain parts |
|
2881 | list( $local, $domain ) = explode( '@', $email, 2 ); |
|
@@ 3112-3115 (lines=4) @@ | ||
3109 | } |
|
3110 | ||
3111 | // Test for an @ character after the first position |
|
3112 | if ( strpos( $email, '@', 1 ) === false ) { |
|
3113 | /** This filter is documented in wp-includes/formatting.php */ |
|
3114 | return apply_filters( 'sanitize_email', '', $email, 'email_no_at' ); |
|
3115 | } |
|
3116 | ||
3117 | // Split out the local and domain parts |
|
3118 | list( $local, $domain ) = explode( '@', $email, 2 ); |