[wp-trac] [WordPress Trac] #18666: Can't register with Arabic usernames

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 15 14:01:20 UTC 2011


#18666: Can't register with Arabic usernames
--------------------------+------------------------
 Reporter:  walid3        |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  3.2.1
 Severity:  normal        |  Resolution:  duplicate
 Keywords:                |
--------------------------+------------------------

Comment (by SergeyBiryukov):

 Please check if the attached plugin works for you.
 The difference is in the regular expression:
 {{{
 $username = preg_replace( '|[^a-z\p{Arabic}0-9 _.\-@]|iu', '', $username
 );
 }}}
 It uses `\p{Arabic}` [http://www.regular-
 expressions.info/unicode.html#script Unicode script].

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18666#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list