[wp-trac] [WordPress Trac] #26733: get_author_posts_url() is not removing accents/dicritics from the author link

WordPress Trac noreply at wordpress.org
Tue Dec 31 11:04:22 UTC 2013


#26733: get_author_posts_url() is not removing accents/dicritics from the author
link
-------------------------------------+------------------------------
 Reporter:  bpmvrzsf                 |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Formatting               |     Version:  3.8
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+------------------------------
Changes (by bcworkz):

 * cc: bcworkz (added)
 * keywords:   => has-patch needs-testing
 * component:  General => Formatting
 * type:  defect (bug) => enhancement


Comment:

 The author name comes from `user_nicename`, which by default is the same
 as `user_login`, which is not allowed to have accents/diacritics. There is
 not any way in the default installation to alter `user_nicename`. It can
 only be done by plugin or directly editing the DB. So not running
 `user_nicename` through `remove_accents()` is not a bug.

 Since users could innocently alter `user_nicename`, it's not unreasonable
 to enhance `get_author_posts_url()` to remove any possible accents.

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


More information about the wp-trac mailing list