[wp-trac] [WordPress Trac] #28163: function email_exists() check without removing umlauts

WordPress Trac noreply at wordpress.org
Tue Jul 26 14:25:42 UTC 2022


#28163: function email_exists() check without removing umlauts
--------------------------+---------------------
 Reporter:  hpr78         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:
Component:  Users         |     Version:  3.8.3
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by johnregan3):

 * keywords:  has-patch needs-unit-tests needs-refresh => has-patch


Comment:

 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' );
 }
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28163#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list