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

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 24 04:36:40 GMT 2006


#2467: Spaces in nicknames and author pages
----------------------------+-----------------------------------------------
       Id:  2467            |      Status:  reopened                
Component:  Administration  |    Modified:  Fri Feb 24 04:36:40 2006
 Severity:  minor           |   Milestone:                          
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  anonymous       |    Reporter:  joelgilmore             
----------------------------+-----------------------------------------------
Changes (by joelgilmore):

  * resolution:  invalid =>
  * status:  closed => reopened

Comment:

 I was using

 <?php wp_list_authors('exclude_admin=0'); ?>

 This is what happens for me on the latest 2.01 build:

 * Create new user with user name "Bob Smith" (no quotes)

 * Write one post with them as author

 * Try to access their page with the link of form www.myblog.com/author
 /bob-smith/, returned by wp_list_authors, using all default permalink
 structures, etc.

 * No joy getting the corresponding author page if the username had spaces
 in it; no problem for one word.

 I'd made a default a custom author page, but I don't imagine that's
 necessary.

 The function get_author_link (in template-functions-author.php) seems to
 return a link using user_nicename, whereas get_userdatabylogin (in
 pluggable-functions.php) looks up the database with user_login instead.
 I'm not really clear where/how user_nicename is set, but it seems that if
 the link is generated using that field, that's what we should look up in
 the database.

 Of course, it's equally possible I'm missing something completely...!

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


More information about the wp-trac mailing list