Changeset 30791 for trunk/src/wp-admin/includes/post.php
- Timestamp:
- 12/08/2014 09:13:56 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/post.php
r30755 r30791 1215 1215 } 1216 1216 } else { 1217 if ( function_exists( 'mb_strlen' ) && mb_strlen( $post_name ) > 30 ) { 1218 $post_name_abridged = mb_substr( $post_name, 0, 14 ) . '…' . mb_substr( $post_name, -14 ); 1219 } elseif ( strlen( $post_name ) > 30 ) { 1220 $post_name_abridged = substr( $post_name, 0, 14 ) . '…' . substr( $post_name, -14 ); 1217 if ( function_exists( 'mb_strlen' ) ) { 1218 if ( mb_strlen( $post_name ) > 30 ) { 1219 $post_name_abridged = mb_substr( $post_name, 0, 14 ) . '…' . mb_substr( $post_name, -14 ); 1220 } else { 1221 $post_name_abridged = $post_name; 1222 } 1221 1223 } else { 1222 $post_name_abridged = $post_name; 1224 if ( strlen( $post_name ) > 30 ) { 1225 $post_name_abridged = substr( $post_name, 0, 14 ) . '…' . substr( $post_name, -14 ); 1226 } else { 1227 $post_name_abridged = $post_name; 1228 } 1223 1229 } 1224 1230
Note: See TracChangeset
for help on using the changeset viewer.