Permalinks: Slightly lengthen the truncated slug for display.
This brings it closer to the width of the input so there is less jumping around of buttons. We can afford the space now that other buttons in the space are typically no longer there. fixes #18306. Built from https://develop.svn.wordpress.org/trunk@34833 git-svn-id: http://core.svn.wordpress.org/trunk@34798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
3f747a6395
commit
60431ae239
|
@ -1327,14 +1327,14 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( function_exists( 'mb_strlen' ) ) {
|
if ( function_exists( 'mb_strlen' ) ) {
|
||||||
if ( mb_strlen( $post_name ) > 30 ) {
|
if ( mb_strlen( $post_name ) > 34 ) {
|
||||||
$post_name_abridged = mb_substr( $post_name, 0, 14 ) . '…' . mb_substr( $post_name, -14 );
|
$post_name_abridged = mb_substr( $post_name, 0, 16 ) . '…' . mb_substr( $post_name, -16 );
|
||||||
} else {
|
} else {
|
||||||
$post_name_abridged = $post_name;
|
$post_name_abridged = $post_name;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( strlen( $post_name ) > 30 ) {
|
if ( strlen( $post_name ) > 34 ) {
|
||||||
$post_name_abridged = substr( $post_name, 0, 14 ) . '…' . substr( $post_name, -14 );
|
$post_name_abridged = substr( $post_name, 0, 16 ) . '…' . substr( $post_name, -16 );
|
||||||
} else {
|
} else {
|
||||||
$post_name_abridged = $post_name;
|
$post_name_abridged = $post_name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34832';
|
$wp_version = '4.4-alpha-34833';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue