From ae998b8a762920434158bd374351d556fa1cfe13 Mon Sep 17 00:00:00 2001 From: westi Date: Sun, 4 May 2008 21:13:42 +0000 Subject: [PATCH] Make international slugs easier to edit. Fixes #6915 props options. git-svn-id: http://svn.automattic.com/wordpress/trunk@7887 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/edit-category-form.php | 2 +- wp-admin/edit-link-category-form.php | 2 +- wp-admin/edit-tag-form.php | 2 +- wp-admin/includes/post.php | 4 ++++ 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/wp-admin/edit-category-form.php b/wp-admin/edit-category-form.php index 60368c2f0..aaf1c1353 100644 --- a/wp-admin/edit-category-form.php +++ b/wp-admin/edit-category-form.php @@ -31,7 +31,7 @@ if ( ! empty($cat_ID) ) { -
+
diff --git a/wp-admin/edit-link-category-form.php b/wp-admin/edit-link-category-form.php index 67b0be1d1..ac664300c 100644 --- a/wp-admin/edit-link-category-form.php +++ b/wp-admin/edit-link-category-form.php @@ -30,7 +30,7 @@ if ( ! empty($cat_ID) ) { - + diff --git a/wp-admin/edit-tag-form.php b/wp-admin/edit-tag-form.php index 62a8e2b8f..063c4560a 100644 --- a/wp-admin/edit-tag-form.php +++ b/wp-admin/edit-tag-form.php @@ -31,7 +31,7 @@ if ( ! empty($tag_ID) ) { - +

diff --git a/wp-admin/includes/post.php b/wp-admin/includes/post.php index 99542fa8c..b04463bd5 100644 --- a/wp-admin/includes/post.php +++ b/wp-admin/includes/post.php @@ -642,6 +642,10 @@ function get_sample_permalink_html($id, $new_title=null, $new_slug=null) { return ''; } $title = __('Click to edit this part of the permalink'); + + // make %-encoded international names readable and therefore editable + $post_name = rawurldecode($post_name); + if (strlen($post_name) > 30) { $post_name_abridged = substr($post_name, 0, 14). '…' . substr($post_name, -14); } else {