guychisholm
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: Shibboleth] Username at risk of breaking permalinks with %author%@zooney Yes, this fix only runs at account generation time. No reason why you shouldn’t update the database to fix the existing users.
Forum: Plugins
In reply to: [Plugin: Shibboleth] Username at risk of breaking permalinks with %author%…oh wait! They do 🙂 My bad
Forum: Plugins
In reply to: [Plugin: Shibboleth] Username at risk of breaking permalinks with %author%@mitcho, long time ago now, but I suspect I picked
sanitize_titlebecause of wp-includes/registration.php#L132.I assume you mean
sanitize_user, rather thansanitize_name? If this is the case then, I would agree that this is more appropriate thansanitize_title. Interesting that this method is not used in the core registration…Forum: Plugins
In reply to: [Plugin: Shibboleth] Username at risk of breaking permalinks with %author%Zooney,
My solution is to add the filter I mentioned in my original post:
add_filter( 'shibboleth_user_nicename', 'sanitize_title');
You can either create a single plugin with this line, or, to keep it simple, you can just add it in the shibboleth.php code.I’ve added mine just above
$shib_headers = shibboleth_get_option('shibboleth_headers');
inside the shibboleth_update_user_data function.Hopefully this can be integrated into future releases.