• May be a typo in the code of ver 2.0 or what???

    Table wp_categories in ver 2.0 has a field category_nicename. In ver 1.5 the same field was category_nickname. (see categories.php)

    Same is true with table wp_users (user_nicename instead of user_nickname)

    Plugins which use this field (e.g. EventCalendar) give an error when used in ver 2.0. When nickname is changed to nicename in the plugin code, everything works fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Regarding categories, I must be missing something. Found no reference to a field called category_nickname in 1.5.2 or 2.0 either in the database or in the code.

    As for the user_nicename vs. user_nickname:
    In 1.5.2 both user_nicename and user_nickname were in the wp_users table. user_nicename was the sanitized (I think that’s the right word) version of user_nickname meaning “My Nickname” is made into the nicename of “my-nickname”.

    In 2.0, user_nicename is still in the wp_user table but it is the sanitized version of user_login field. The nickname field was moved into the wp_usermeta table with a ‘meta_key’ of ‘nickname’. One interesting point is that when a new user is added (or registers) the user_login, user_nicename, and nickname fields are pretty much the same value (except user_nicename is sanitized). Subsequently, the nickname can be changed by the user or the administrator.

    In 1.5.2 the ‘nicename’ was tied to the ‘nickname’ so that meant that the ‘nicename’ changed if the ‘nickname’ changed. But, in 2.0 the ‘nicename’ is tied to the user_login field so the ‘nicename’ nevers changes because the user_login can never change. Don’t know if that was intentionally done by the developers…

    One other note–if your plugin is using something like the get_userbylogin function, the ‘nickname’ is NO LONGER accessed with the variable user_nickname; use nickname instead. But, user_nicename is still valid. See Author Templates for more info on this.

    ********************
    Welcome to the WordPress Support Forums!

    Please help keep the Forums successful by reading:
    Using the Support Forums

    Also, remember the WordPress Codex and the FAQ pages.

    And, thank you, for letting us know if this information proves useful (or not)!
    ********************

    Thread Starter butterfly

    (@butterfly)

    Thanks for your detailed answer.
    (It looks like my first post was all wrong.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Nickname in ver 1.5 is nicename in ver 2.0’ is closed to new replies.