Changes between Initial Version and Version 1 of Ticket #31335, comment 3
- Timestamp:
- 07/26/2015 01:01:34 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31335, comment 3
initial v1 16 16 The original {{{wp_nonce_url(...)}}} could then call {{{wp_nonce_url_pure(...)}}} to be backward-compatible with the current logic that calls {{{wp_nonce_url(...)}}}, but in general there seems to be something wrong with the way {{{wp_nonce_url(...)}}} is coded and called. So the long-term solution would be to refactor the logic that would need {{{wp_nonce_url(...)}}} to return an encoded result. 17 17 18 Taking a look at {{{https://wordpress.org/support/topic/wp_logout_url-not-redirecting}}}indicates that this problem has been present for a while. The solution presented in the last post to that thread may not work if the redirect URL also contains query strings.18 Taking a look at https://wordpress.org/support/topic/wp_logout_url-not-redirecting indicates that this problem has been present for a while. The solution presented in the last post to that thread may not work if the redirect URL also contains query strings. 19 19 20 20 For anyone dealing with this problem while it still persists in the WordPress core, I would recommend duplicating the logic in {{{wp_logout_url(...)}}} in your own project, but instead of calling {{{wp_nonce_url(...)}}}, have it call your own function like the theoretical {{{wp_nonce_url_pure(...)}}} that I described above.