WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Capability Manager] Role name can't contain non-a-z characters? (3 posts)

  1. kahi
    Member
    Posted 5 years ago #

    Why can't role name contain character out of basic alphabet? E.g. exclamation mark or central-european accented characters? It says: Error: Failed creating the new role. Is this limitation really necessary?

    Thank you!

    http://wordpress.org/extend/plugins/capsman/

  2. Txanny
    Member
    Posted 5 years ago #

    Sometimes, characters out of the basic alphabet have a bad behavior when used as an array index. As Roles and Capabilities are saved by WordPress as arrays. Also, I've seen some unexpected results when using them in Roles or Capabilities names.

    In the other hand, there are some plugins that use roles and capabilities that expect only the basic alphabet and don't work (or crash) if an other characters are found.

    Because of that, I preferred to strip out the option to use them, and ensure your created roles and capabilities will work always as expected in WordPress and third party plugins.

    I know this is a limitation, but thing is better have this limitation than having things not working as them must.

  3. kahi
    Member
    Posted 5 years ago #

    I see :(. Thank you for the clarification.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags