WordPress.org

Make WordPress Core

Ticket #29573: 29573.5.patch

File 29573.5.patch, 1.7 KB (added by azaozz, 6 years ago)
  • src/wp-admin/css/edit.css

     
    114114
    115115#editable-post-name {
    116116        background-color: #fffbcc;
     117        overflow: hidden;
     118        max-width: 16em;
     119        display: inline-block;
     120        white-space: nowrap;
     121        vertical-align: top;
     122        text-overflow: ellipsis;
    117123}
    118124
    119125#editable-post-name input {
    120126        font-size: 13px;
    121         height: 22px;
     127        height: 24px;
    122128        margin: 0;
    123129        width: 16em;
    124130}
  • src/wp-admin/includes/post.php

     
    12141214                        $return .= '<span id="change-permalinks"><a href="options-permalink.php" class="button button-small" target="_blank">' . __('Change Permalinks') . "</a></span>\n";
    12151215                }
    12161216        } else {
    1217                 if ( function_exists( 'mb_strlen' ) && mb_strlen( $post_name ) > 30 ) {
    1218                         $post_name_abridged = mb_substr( $post_name, 0, 14 ) . '&hellip;' . mb_substr( $post_name, -14 );
    1219                 } elseif ( strlen( $post_name ) > 30 ) {
    1220                         $post_name_abridged = substr( $post_name, 0, 14 ) . '&hellip;' . substr( $post_name, -14 );
    1221                 } else {
    1222                         $post_name_abridged = $post_name;
    1223                 }
    1224 
    1225                 $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name_abridged . '</span>';
     1217                $post_name_html = '<span id="editable-post-name" title="' . $title . '">' . $post_name . '</span>';
    12261218                $display_link = str_replace( array( '%pagename%', '%postname%' ), $post_name_html, urldecode( $permalink ) );
    12271219
    12281220                $return =  '<strong>' . __( 'Permalink:' ) . "</strong>\n";