mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Formatting: Verify emails with + characters are valid.
This adds an assertion to confirm that `is_email()` considers email addresses with a `+` valid. Props SergeyBiryukov, ayeshrajans. Fixes #53130. git-svn-id: https://develop.svn.wordpress.org/trunk@50812 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9aa08906e2
commit
aa62fdbfaa
@ -11,6 +11,7 @@ class Tests_Formatting_IsEmail extends WP_UnitTestCase {
|
||||
'ace@204.32.222.14',
|
||||
'kevin@many.subdomains.make.a.happy.man.edu',
|
||||
'a@b.co',
|
||||
'bill+ted@example.com',
|
||||
);
|
||||
foreach ( $data as $datum ) {
|
||||
$this->assertSame( $datum, is_email( $datum ), $datum );
|
||||
|
||||
Loading…
Reference in New Issue
Block a user