Skip to content

Use sanitize_title rather than sanitize_user for user_nicename#4

Merged
michaelryanmcneill merged 1 commit intomichaelryanmcneill:masterfrom
jrchamp:fix_filter_nicename
Aug 24, 2017
Merged

Use sanitize_title rather than sanitize_user for user_nicename#4
michaelryanmcneill merged 1 commit intomichaelryanmcneill:masterfrom
jrchamp:fix_filter_nicename

Conversation

@jrchamp
Copy link
Collaborator

@jrchamp jrchamp commented Aug 24, 2017

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

@michaelryanmcneill
Copy link
Owner

This looks good to me.

@michaelryanmcneill michaelryanmcneill merged commit 00759a7 into michaelryanmcneill:master Aug 24, 2017
@michaelryanmcneill michaelryanmcneill self-assigned this Aug 25, 2017
@michaelryanmcneill michaelryanmcneill added this to the 1.9 milestone Aug 25, 2017
@michaelryanmcneill michaelryanmcneill modified the milestones: 1.8.1, 1.9 Sep 8, 2017
@jrchamp jrchamp deleted the fix_filter_nicename branch August 7, 2020 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants