[Plugin: SimpleModal Login] redirect_to with multiple parameters breaks
-
If you redirect to a URL with multiple GET parameters using wp_loginout(), your plugin breaks the response url.
Specifically wp_loginout() escapes ampersands from & to & and your plugin does not revert them before redirecting to that url.
I was able to resolve this by replacing:
setTimeout(function () {window.location = href;}, 500);
with:
setTimeout(function () {window.location = href.replace('&', '&');}, 500);
in each of the theme javascript files.
- The topic ‘[Plugin: SimpleModal Login] redirect_to with multiple parameters breaks’ is closed to new replies.