[wp-trac] Re: [WordPress Trac] #1626: user_nicename should be unique

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 2 01:28:19 GMT 2007


#1626: user_nicename should be unique
--------------------------------------------------+-------------------------
 Reporter:  claudem                               |        Owner:  charleshooper
     Type:  defect                                |       Status:  assigned     
 Priority:  normal                                |    Milestone:  2.2          
Component:  General                               |      Version:  2.1          
 Severity:  normal                                |   Resolution:               
 Keywords:  has-patch needs-testing 2nd-opninion  |  
--------------------------------------------------+-------------------------
Changes (by charleshooper):

  * keywords:  needs-patch => has-patch needs-testing 2nd-opninion
  * status:  new => assigned
  * version:  1.5.1.2 => 2.1
  * owner:  anonymous => charleshooper

Comment:

 I've added a patch for 2.1 to fix this. The patch adds a
 {{{nicename_exists()}}} function, which relies on another function I just
 added: {{{get_userdatabynicename()}}}. This function works the exact same
 way as {{{get_userdatabylogin()}}} however it checks {{{user_nicename}}},
 which is always derived from {{{sanitize_title ( user_login ) }}}.

 {{{get_userdatabynicename()}}} does not currently use any caching. I could
 change that, but I think that is better suited for 2.2 where caching has
 been fixed up a bit.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/1626#comment:9>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list