[wp-trac] [WordPress Trac] #28369: Replace @ with a hyphen in user_nicename

WordPress Trac noreply at wordpress.org
Mon Oct 20 19:35:37 UTC 2014


#28369: Replace @ with a hyphen in user_nicename
----------------------------+------------------------------
 Reporter:  SergeyBiryukov  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  low             |   Milestone:  Awaiting Review
Component:  Users           |     Version:
 Severity:  minor           |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by MikeHansenMe):

 I am not sure it is sanitize_user that is removing the @. I installed the
 following test plugin:


 {{{
 function test() {
         var_dump( sanitize_user( 'm at m.com', true ) );
         var_dump( sanitize_user( 'm at m.com', false ) );
         die;
 }
 add_action( 'admin_init', 'test' );
 }}}

 and it returned:

 {{{
 string(7) "m at m.com" string(7) "m at m.com"
 }}}

 I created a user with an email as a username and did see the @ get removed
 from the url. I will look into it more and see if I can find where it is
 getting removed.

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


More information about the wp-trac mailing list