mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-05 05:04:31 +00:00
Formatting: Increase minimum characters allowed in is_email() to 6.
Brings the minimum characters expected for a valid email address to six, which matches the expectations in `wp_handle_comment_submission()` and REST API email arguments. Props rmccue, lukecavanagh, rachelbaker, desrosj, sudar. Fixes #38708. git-svn-id: https://develop.svn.wordpress.org/trunk@40667 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -9,7 +9,8 @@ class Tests_Formatting_IsEmail extends WP_UnitTestCase {
|
||||
"bob@example.com",
|
||||
"phil@example.info",
|
||||
"ace@204.32.222.14",
|
||||
"kevin@many.subdomains.make.a.happy.man.edu"
|
||||
"kevin@many.subdomains.make.a.happy.man.edu",
|
||||
"a@b.co",
|
||||
);
|
||||
foreach ( $data as $datum ) {
|
||||
$this->assertEquals( $datum, is_email( $datum ), $datum );
|
||||
@@ -22,7 +23,8 @@ class Tests_Formatting_IsEmail extends WP_UnitTestCase {
|
||||
'http://bob.example.com/',
|
||||
"sif i'd give u it, spamer!1",
|
||||
"com.exampleNOSPAMbob",
|
||||
"bob@your mom"
|
||||
"bob@your mom",
|
||||
"a@b.c",
|
||||
);
|
||||
foreach ($data as $datum) {
|
||||
$this->assertFalse(is_email($datum), $datum);
|
||||
|
||||
Reference in New Issue
Block a user