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
This commit is contained in:
Peter Westwood
2008-05-04 21:13:42 +00:00
parent 1288013605
commit a17ecd3f22
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 {