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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user