From cd99d5915fc4f52f27b1582e90443f3fc42361b2 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 17 Nov 2014 03:00:21 +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 Built from https://develop.svn.wordpress.org/trunk@30364 git-svn-id: http://core.svn.wordpress.org/trunk@30363 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index ec96749f46..f90effed3e 100644 --- a/wp-admin/includes/post.php +++ b/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";