Skip to content

Conversation

donmhico
Copy link

The issue is $redirect['query'] and $original['query'] are never equal because it's comparing the urlencoded vs non urlencoded version.

For example

$original['query'] = 'genre=%e3%83%af%e3%83%bc%e3%83%89%e3%83%97%e3%83%ac%e3%82%b9'
$redirect['query'] = 'genre=ワードプレス'

Basically the value of genre are the same, urlencoded-wise.

We still use the same logic as the previous $compare_original !== $compare_redirect, we just changed it so that we can handle the query difference.

This still needs more eyes and testing.

Trac ticket: https://core.trac.wordpress.org/ticket/52376


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

…d redirect url is the query but the urlencoded version is basically the same
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant