Changeset 9986
- Timestamp:
- 11/30/2008 07:09:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r9871 r9986 948 948 } 949 949 $title = __('Click to edit this part of the permalink'); 950 if (strlen($post_name) > 30) { 951 $post_name_abridged = substr($post_name, 0, 14). '…' . substr($post_name, -14); 950 if (function_exists('mb_strlen')) { 951 if (mb_strlen($post_name) > 30) { 952 $post_name_abridged = mb_substr($post_name, 0, 14). '…' . mb_substr($post_name, -14); 953 } else { 954 $post_name_abridged = $post_name; 955 } 952 956 } else { 953 $post_name_abridged = $post_name; 957 if (strlen($post_name) > 30) { 958 $post_name_abridged = substr($post_name, 0, 14). '…' . substr($post_name, -14); 959 } else { 960 $post_name_abridged = $post_name; 961 } 954 962 } 955 963 $post_name_html = '<span id="editable-post-name" title="'.$title.'">'.$post_name_abridged.'</span><span id="editable-post-name-full">'.$post_name.'</span>';
Note: See TracChangeset
for help on using the changeset viewer.