On post edit pages, when a slug exceeds a certain number of characters, Wordpress abridges it with an ellipsis (...). For example, if my slug is i-want-to-be-able-to-see-this-slug, it appears on the edit page like this:

Permalink: http://example.com/2012/i-want-to-be-a...-see-this-slug/ [ Edit ]

Can I prevent Wordpress from doing this?

I like to be able to see (and copy) a full URL without obfuscation, so I'm dying to find out how to get rid with this feature.

link|improve this question

67% accept rate
only edit tags for better related – bueltge Jan 27 at 20:05
feedback

1 Answer

Its not possibel via filter or action hook, WordPress cut the strings hard in core. see wp-admin/includes/post.php line 1110 in WP 3.4alpha

if ( function_exists('mb_strlen') ) {
    if ( mb_strlen($post_name) > 30 ) {
        $post_name_abridged = mb_substr($post_name, 0, 14). '…' . mb_substr($post_name, -14);
    } else {
        $post_name_abridged = $post_name;
    }
} else {
    if ( strlen($post_name) > 30 ) {
        $post_name_abridged = substr($post_name, 0, 14). '…' . substr($post_name, -14);
    } else {
        $post_name_abridged = $post_name;
    }
}

You can open a ticket on the Trac of WordPress for include an filter.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.