Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.

Mlp_Advanced_Translator_View post_name non-ascii characters support #186

Closed
luisarn opened this issue Dec 15, 2015 · 1 comment
Closed

Comments

@luisarn
Copy link

luisarn commented Dec 15, 2015

Wordpress stores the url encoded post_name on DB if the post_name has non-ascii characters.

Mlp_Advanced_Translator_View show_name function lacks the urldecode on the $value so it will display the encoded characters on the input field.

I added this line:
$value = urldecode($value);
right after the line 104 of Mlp_Advanced_Translator_View.php:
$value = esc_attr( $value );
to solve the issue.

Maybe you can add it to the master branch in the next update?

Thanks!
Luis

@tfrommen
Copy link
Member

Hey Luis,

I changed the order (escaping comes last), but thanks for the issue (and fix as well). Much appreciated. :)

Thorsten

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants