Closed jrchamp closed 6 years ago
user_nicename is often used for URLs as a slug to the user. Comparing the documentation for the two functions, sanitize_title is the one that generates a URL-safe slug.
https://codex.wordpress.org/Function_Reference/sanitize_title https://codex.wordpress.org/Function_Reference/sanitize_user
This looks good to me.
user_nicename is often used for URLs as a slug to the user. Comparing the documentation for the two functions, sanitize_title is the one that generates a URL-safe slug.
https://codex.wordpress.org/Function_Reference/sanitize_title https://codex.wordpress.org/Function_Reference/sanitize_user