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

WordPress Trac noreply at wordpress.org
Fri Jan 17 06:53:26 UTC 2014


#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:  close        |
-------------------------+------------------------------
Changes (by nacin):

 * keywords:  has-patch needs-testing => close


Comment:

 Hi bpmvrzsf, thanks for the bug report.

 You're right that it's not possible to change user_nicename. But the field
 is actually run through sanitize_title() (you can see this in
 wp_insert_user()). sanitize_title() is a general utility function that in
 turn runs it through remove_accents(). sanitize_title() is a ''slight''
 misnomer, but really it means "sanitize this to be friendly for a URL" by
 removing accents, adding dashes and such.

 I'm not sure how your nicename ended up with an accent, but it definitely
 isn't possible without a plugin or DB edit. Given that remove_accents()
 ''is'' run, it looks like this is actually not a bug.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/26733#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list