Add various unit tests for antispambot, is_email and sanitize_email#11552
Add various unit tests for antispambot, is_email and sanitize_email#11552arnt wants to merge 3 commits intoWordPress:trunkfrom
Conversation
|
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. |
In preparation for later work to allow non-US-ASCII email addresses, this change extends the unit test suite for `is_email()` and adds new tests covering `antispambot()` and `sanitize_email()`. This work was done collaboratively during WordCamp Vienna, 2026 as a Contributor Challenge in cooperation with and support from ICANN and also GeoTLDs Universal Acceptance Local Initiative. Developed in: #11552 Discussed in: https://core.trac.wordpress.org/ticket/31992 Props agulbra, akirk, benniledl, dmsnell. See #31992. git-svn-id: https://develop.svn.wordpress.org/trunk@62225 602fd350-edb4-49c9-b593-d223f7449a82
In preparation for later work to allow non-US-ASCII email addresses, this change extends the unit test suite for `is_email()` and adds new tests covering `antispambot()` and `sanitize_email()`. This work was done collaboratively during WordCamp Vienna, 2026 as a Contributor Challenge in cooperation with and support from ICANN and also GeoTLDs Universal Acceptance Local Initiative. Developed in: WordPress/wordpress-develop#11552 Discussed in: https://core.trac.wordpress.org/ticket/31992 Props agulbra, akirk, benniledl, dmsnell. See #31992. Built from https://develop.svn.wordpress.org/trunk@62225 git-svn-id: http://core.svn.wordpress.org/trunk@61505 1a063a9b-81f0-0310-95a4-ce76da25c4cd
…ke 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: #11552 Discussed in: https://core.trac.wordpress.org/ticket/31992 Follow-up to: [62225]. Props agulbra, akirk, benniledl, dmsnell. See #31992. git-svn-id: https://develop.svn.wordpress.org/trunk@62226 602fd350-edb4-49c9-b593-d223f7449a82
…ke 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: WordPress/wordpress-develop#11552 Discussed in: https://core.trac.wordpress.org/ticket/31992 Follow-up to: [62225]. Props agulbra, akirk, benniledl, dmsnell. See #31992. Built from https://develop.svn.wordpress.org/trunk@62226 git-svn-id: http://core.svn.wordpress.org/trunk@61506 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Trac ticket: 31992