[wp-trac] [WordPress Trac] #3531: Username with special Characters

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 6 15:21:42 GMT 2007


#3531: Username with special Characters
----------------------------+-----------------------------------------------
 Reporter:  killer-g        |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:  2.1      
Component:  Administration  |     Version:  2.1      
 Severity:  major           |    Keywords:  username 
----------------------------+-----------------------------------------------
 In older Versions it was allowed to have a Username with special
 characters. f.ex. MP:George

 After updating to beta1 version i wanted to change some settings in the
 userprofile but this does not save since the username is checked again.

 '''Solution:'''

 when editing my existing userprofile there is no need to check the
 username before saving since i can´t change it anyway

 In admin_function.php around line 500 wrap if(!validate_username).. with
 if like the following:
 {{{
 #!php
 if($update==false){
  if ( !validate_username( $user->user_login ) )
         $errors->add( 'user_login', __( '<strong>ERROR</strong>: This
 username is invalid.  Please enter a valid username.' ));
 }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3531>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list