Opened 12 years ago
Last modified 4 years ago
#28163 new defect (bug)
function email_exists() check without removing umlauts
| Reported by: | hpr78 | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Users | Version: | 3.8.3 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
But with wp_insert_user() the umlauts got removed.
A littel bit confusing.
Attachments (3)
Change History (8)
#4
@
4 years ago
- Keywords needs-unit-tests needs-refresh removed
After updating the Test patch it is apparent that the original patch (user.php.patch) is no longer needed. The sanitize_email() call is now handled in wp-includes/default-filters.php using the 'pre_user_email' filter.
// Email saves.
foreach ( array( 'pre_comment_author_email', 'pre_user_email' ) as $filter ) {
add_filter( $filter, 'trim' );
add_filter( $filter, 'sanitize_email' );
add_filter( $filter, 'wp_filter_kses' );
}
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
We have attached the patch file. It will remove "umlauts" before existing email check.