Revert [28948], which caused a regression.
see #29573 for trunk. see #28350. Built from https://develop.svn.wordpress.org/trunk@30791 git-svn-id: http://core.svn.wordpress.org/trunk@30781 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
aa9fa42f91
commit
0ef8e683f2
|
@ -1214,13 +1214,19 @@ function get_sample_permalink_html( $id, $new_title = null, $new_slug = null ) {
|
||||||
$return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small" target="_blank">' . __('Change Permalinks') . "</a></span>\n";
|
$return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small" target="_blank">' . __('Change Permalinks') . "</a></span>\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if ( function_exists( 'mb_strlen' ) && mb_strlen( $post_name ) > 30 ) {
|
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 );
|
$post_name_abridged = mb_substr( $post_name, 0, 14 ) . '…' . mb_substr( $post_name, -14 );
|
||||||
} elseif ( strlen( $post_name ) > 30 ) {
|
} else {
|
||||||
|
$post_name_abridged = $post_name;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ( strlen( $post_name ) > 30 ) {
|
||||||
$post_name_abridged = substr( $post_name, 0, 14 ) . '…' . substr( $post_name, -14 );
|
$post_name_abridged = substr( $post_name, 0, 14 ) . '…' . substr( $post_name, -14 );
|
||||||
} else {
|
} else {
|
||||||
$post_name_abridged = $post_name;
|
$post_name_abridged = $post_name;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';
|
$post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';
|
||||||
$display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink ) );
|
$display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink ) );
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30790';
|
$wp_version = '4.1-beta2-30791';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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