[wp-trac] [WordPress Trac] #2467: Spaces in nicknames and author pages

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 17 01:20:22 GMT 2006

#2467: Spaces in nicknames and author pages
       Id:  2467            |      Status:  new                     
Component:  Administration  |    Modified:  Fri Feb 17 01:20:22 2006
 Severity:  minor           |   Milestone:                          
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  joelgilmore             
 It seems that when an user's username contains spaces (e.g., "Bob Smith"),
 links to their author page of the form /author/bob-smith/ fail (these are
 the types of links produced from within wordpress) and go to the 404 page.
 This can be fixed by editing the {{{get_userdatabylogin}}} function and

 if ( !$user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE user_login
 = '$user_login'") )


 if ( !$user = $wpdb->get_row("SELECT * FROM $wpdb->users WHERE
 user_nicename = '$user_login'") )`

 But I'm not clear whether this is an appropriate change, or not.  Hope
 this is of some use.

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

More information about the wp-trac mailing list