From c162a0f82eabd717108660521fb47ef926070506 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 17 Nov 2014 02:59:43 +0000 Subject: [PATCH] Decode the sample permalink shown to the user. This avoids showing encoded non-Latin characters in the sample permalink. Fixes #16496 Props linuxologos git-svn-id: https://develop.svn.wordpress.org/trunk@30364 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/post.php b/src/wp-admin/includes/post.php index ec96749f46..f90effed3e 100644 --- a/src/wp-admin/includes/post.php +++ b/src/wp-admin/includes/post.php @@ -1223,7 +1223,7 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) { } $post_name_html = '' . $post_name_abridged . ''; - $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, $permalink ); + $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink ) ); $return = '' . __( 'Permalink:' ) . "\n"; $return .= '' . $display_link . "\n";