Make WordPress Core


Ignore:
Timestamp:
05/14/2017 04:19:51 AM (8 years ago)
Author:
rachelbaker
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/IsEmail.php

    r30392 r40667  
    1010            "phil@example.info",
    1111            "ace@204.32.222.14",
    12             "kevin@many.subdomains.make.a.happy.man.edu"
     12            "kevin@many.subdomains.make.a.happy.man.edu",
     13            "a@b.co",
    1314            );
    1415        foreach ( $data as $datum ) {
     
    2324            "sif i'd give u it, spamer!1",
    2425            "com.exampleNOSPAMbob",
    25             "bob@your mom"
     26            "bob@your mom",
     27            "a@b.c",
    2628            );
    2729        foreach ($data as $datum) {
Note: See TracChangeset for help on using the changeset viewer.