Wp Login redirect 从 url 中剥离参数

Wp Login redirect strips parameters from url

如果我在url地址栏中写入http://example.com/wp-login.php?redirect_to=http://example.com/specificpage/?parameter1=dog&parameter2=dog&parameter3=cat(使登录页面重定向到带有参数的特定页面)并登录。

我得到 重定向到正确的页面,但只有第一个参数 (http://example.com/specificpage/?parameter1=dog)。其他两个参数从 url.

中删除

我该如何解决?

顺便说一句 - 参数在此站点上是可以接受的(在函数文件中使用 add_custom_query_vars 设置,所以这不是问题)。

我最终对重定向进行了编码 url。在我的例子中使用 php ('http://example.com/wp-login.php?redirect_to='.urlencode(http://example.com/specificpage/?parameter1=dog&parameter2=dog&parameter3=cat));)

现在可以了!

在我的例子中是 https://github.com/Arsenal21/all-in-one-wordpress-security/issues/11 被屏蔽