Skip to content
This repository was archived by the owner on Sep 2, 2021. It is now read-only.
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

@luisarn

Description

@luisarn

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions