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
This commit is contained in:
westi
2008-05-04 21:13:42 +00:00
parent 76dfbdfb11
commit ae998b8a76
4 changed files with 7 additions and 3 deletions

View File

@@ -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 {