Redirect problem after logging in due to strtolower()
-
On a site with the ‘ultimate member’ plugin that is contained in a subdirectory ‘CMS/’, after logging in you are redirected to your user-profile page within the directory ‘cms/’ rather than ‘CMS/’, resulting in a ‘page not found’ error.
We tracked the problem to a line in the function ‘profile_permalink’ in the file ‘core/um-permalinks.php’, which has the code:
return ! empty( $profile_url ) ? strtolower( $profile_url ) : '';
Since ‘strtolower()’ is already applied to the user-slug a few lines earlier in the same function, can it be removed in this line?
- The topic ‘Redirect problem after logging in due to strtolower()’ is closed to new replies.