From bfc9fc404084c9e889dfd54532a91791c677bf40 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Sat, 19 Sep 2015 11:39:39 +0000 Subject: [PATCH] Menus: Remove whitespace between nav menu items. Avoids CSS hacks like floating menu items or setting the parent element's font-size to 0 in order to display nav menus horizontally. Props jjeaton. Fixes #27762. git-svn-id: https://develop.svn.wordpress.org/trunk@34321 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/nav-menu-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/nav-menu-template.php b/src/wp-includes/nav-menu-template.php index 7a61031a16..f23f6b9e90 100644 --- a/src/wp-includes/nav-menu-template.php +++ b/src/wp-includes/nav-menu-template.php @@ -185,7 +185,7 @@ class Walker_Nav_Menu extends Walker { * @param array $args An array of arguments. @see wp_nav_menu() */ public function end_el( &$output, $item, $depth = 0, $args = array() ) { - $output .= "\n"; + $output .= ''; } } // Walker_Nav_Menu