From a17ecd3f220204aac0b71a1c9eff0ee87abc30b0 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 4 May 2008 21:13:42 +0000 Subject: [PATCH] Make international slugs easier to edit. Fixes #6915 props options. git-svn-id: https://develop.svn.wordpress.org/trunk@7887 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 60368c2f0a..aaf1c1353e 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 67b0be1d10..ac664300c0 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 62a8e2b8ff..063c4560a5 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 99542fa8cf..b04463bd53 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 {