From 8df4668ce68b5204f3eb45f4945c57b17da9a7f2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 15 May 2010 20:00:48 +0000 Subject: [PATCH] Truncate long menu names in the menu locations box. props koopersmith, see #13378. git-svn-id: https://develop.svn.wordpress.org/trunk@14671 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/nav-menu.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 0dbba3e213..96d129b118 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -416,7 +416,10 @@ function wp_nav_menu_locations_meta_box() { term_id ); ?> - value="term_id; ?>">name; ?> + value="term_id; ?>">name, 40 ); + echo $truncated_name == $menu->name ? $menu->name : trim( $truncated_name ) . '…'; + ?>