1900 | | // If a nicename is provided, remove unsafe user characters before |
1901 | | // using it. Otherwise build a nicename from the user_login. |
1902 | | if ( ! empty( $userdata['user_nicename'] ) ) { |
1903 | | $user_nicename = sanitize_user( $userdata['user_nicename'], true ); |
| 1900 | // To improve security it was necessary to hide the reference to a user login, which was presented in the url and the tag body with class css. |
| 1901 | // A correction allows the nicename be referenced in accordance with the chosen field "diplay_name" |
| 1902 | if (empty( $userdata['display_name'] ) ) { |
| 1903 | $user_nicename = sanitize_user( $userdata['user_login'], true ); |