Skip to content

Commit

Permalink
Merge pull request #4 from jrchamp/fix_filter_nicename
Browse files Browse the repository at this point in the history
Use sanitize_title rather than sanitize_user for user_nicename
  • Loading branch information
michaelryanmcneill authored Aug 24, 2017
2 parents cc44090 + 4fc6d09 commit 00759a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shibboleth.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,12 +500,12 @@ function shibboleth_update_user_data($user_id, $force_update = false) {


/**
* Sanitize the nicename using sanitize_user
* Sanitize the nicename using sanitize_title
* See discussion: http://wordpress.org/support/topic/377030
*
* @since 1.4
*/
add_filter( 'shibboleth_user_nicename', 'sanitize_user' );
add_filter( 'shibboleth_user_nicename', 'sanitize_title' );

/**
* Add a "Login with Shibboleth" link to the WordPress login form. This link
Expand Down

0 comments on commit 00759a7

Please sign in to comment.