Support » Plugin: Co-Authors Plus » Problem with special characters in nicename

  • Some of my user nicenames are like this:
    These were originally Chinese characters, already sanitized into something that works in a url.

    When I just try adding authors to posts right after installing the plugin, I can get as far as putting the names into the authors box in the admin panel. But the authors don’t actually get added when I hit “update”.

    If I change the nicenames to something like “this-is-my-name”, with just good old regular alphabets and dashes, no special characters, then it works just fine.

    I see this issue has come up before and has been fixed:
    Fix adding coauthor with special chars in nicename
    But something is breaking it again.

    Changing the nicename to “this-is-my-name” in wp_users adds a new row in wp_terms after I update post authors in the admin backend, like this:
    I see that
    is also in wp_terms.

    I can only guess that this means the
    user_nicename in wp_users gets passed to the slug in wp_terms okay, but something is stopping it from then passing the term_id to wp_term_relationships. But I can’t figure out what it could be!

  • The topic ‘Problem with special characters in nicename’ is closed to new replies.