Ticket #13378: 13378.truncate.long.names.1.patch
File 13378.truncate.long.names.1.patch, 793 bytes (added by , 14 years ago) |
---|
-
wp-admin/includes/nav-menu.php
416 416 <option value=""></option> 417 417 <?php foreach ( $menus as $menu ) : ?> 418 418 <option<?php selected( isset( $menu_locations[ $location ] ) && $menu_locations[ $location ] == $menu->term_id ); ?> 419 value="<?php echo $menu->term_id; ?>"><?php echo $menu->name; ?></option> 419 value="<?php echo $menu->term_id; ?>"><?php 420 $truncated_name = wp_html_excerpt( $menu->name, 40 ); 421 echo $truncated_name == $menu->name ? $menu->name : trim( $truncated_name ) . '…'; 422 ?></option> 420 423 <?php endforeach; ?> 421 424 </select> 422 425 </label>