Email: Default to non-Unicode addresses and ease toggling support.#12567
Email: Default to non-Unicode addresses and ease toggling support.#12567dmsnell wants to merge 1 commit into
Conversation
Trac ticket: Core-31992 See WordPress#5237 Replaces the legacy `is_email()` and `sanitize_email()` functions, augmenting them through instead by selecting email address support. The new `wp_email_address_support` filter provides an opportunity for plugins to upgrade or downgrade email support depending on an individual site’s needs, while paving a path towards future support for Unicode email addresses by default. This patch downgrades default support to the updated `ascii` mode, which rejects Unicode addresses but applies updated parsing rules for better ecosystem integration. Follow-up to: [[32482]](https://core.trac.wordpress.org/changeset/62482).
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Trac ticket: Core-31992
See #5237
Replaces the legacy
is_email()andsanitize_email()functions, augmenting them through instead by selecting email address support.The new
wp_email_address_supportfilter provides an opportunity for plugins to upgrade or downgrade email support depending on an individual site’s needs, while paving a path towards future support for Unicode email addresses by default. This patch downgrades default support to the updatedasciimode, which rejects Unicode addresses but applies updated parsing rules for better ecosystem integration.Follow-up to: [32482].
cc: @arnt