Make WordPress Core

Changeset 62226


Ignore:
Timestamp:
04/11/2026 06:45:38 PM (7 months ago)
Author:
dmsnell
Message:

Email: Add unit tests covering email validation and sanitization. (Take 2)

When the original patch from PR#11552 was merged, it did not include the latest version of the PR code, which had removed a failing test.

This patch removes the failing test to match what ran in the tests on the PR.

Developed in: ​https://github.com/WordPress/wordpress-develop/pull/11552
Discussed in: https://core.trac.wordpress.org/ticket/31992

Follow-up to: [62225].

Props agulbra, akirk, benniledl, dmsnell.
See #31992.

File:
1 edited

Legend:

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

    r62225 r62226  
    3636                        'just a TLD'                     => array( 'abc@com', '' ),
    3737                        'plain'                          => array( 'abc@example.com', 'abc@example.com' ),
    38                         'invalid utf8 in local'          => array( "a\x80b@example.com", '' ),
    3938                        'invalid utf8 subdomain dropped' => array( "abc@sub.\x80.org", 'abc@sub.org' ),
    4039                        'all subdomains invalid utf8'    => array( "abc@\x80.org", '' ),
Note: See TracChangeset for help on using the changeset viewer.