Closed ReneLuecking closed 7 years ago
Hi @ReneLuecking
Good catch! I've fixed the issue by following your recommendation to passed the wp_signon returned value as a 2nd argument to the said AuthRedirect method.
Please let me know if you catch more things 👍
I've updated the plugin to 2.0.5. Will update the one on .org as well.
Cheers!
Closing this issue for now :)
The function
AuthRedirect::getLoginRedirectUrl()
returns wrong urls, if redirect type "custom" is used together with the placeholders (%user_id% and %user_name%), because the functionwp_get_current_user()
returns 0 at this point.As a solution you could pass the returned value of
wp_signon()
as second (optional?) parameter. And could you also add it as second parameter for the filtersubway_login_redirect
for the same reason?