mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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