Make WordPress Core


Ignore:
Timestamp:
07/22/2026 05:20:27 PM (8 weeks ago)
Author:
jonsurrell
Message:

Revert [62482]: Add support for unicode email addresses.

This reverts [62482] based on this decision:

Because of the vast surface area Unicode introduces and the security implications we should keep core as it is, and put this work into a community plugin…

Developed in https://github.com/WordPress/wordpress-develop/pull/12637.

Follow-up to [62482].

See #31992.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/privacy/wpCreateUserRequest.php

    r62482 r62829  
    153153         */
    154154        public function test_sanitized_email() {
    155                 // Address supplied in "Display Name <address>" format should be extracted and accepted.
    156                 $actual = wp_create_user_request( 'Some User <sanitized@local.test>', 'export_personal_data' );
    157 
    158                 $this->assertNotWPError( $actual );
    159 
    160                 $post = get_post( $actual );
    161 
    162                 $this->assertSame( 'export_personal_data', $post->post_name );
    163                 $this->assertSame( 'sanitized@local.test', $post->post_title );
     155                $actual = wp_create_user_request( 'some(email<withinvalid\characters@local.test', 'export_personal_data' );
     156
     157                $this->assertNotWPError( $actual );
     158
     159                $post = get_post( $actual );
     160
     161                $this->assertSame( 'export_personal_data', $post->post_name );
     162                $this->assertSame( 'someemailwithinvalidcharacters@local.test', $post->post_title );
    164163        }
    165164
Note: See TracChangeset for help on using the changeset viewer.