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.


Built from https://develop.svn.wordpress.org/trunk@34321


git-svn-id: http://core.svn.wordpress.org/trunk@34285 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Konstantin Obenland
2015-09-19 11:40:26 +00:00
parent 4ff29f822e
commit 8d8252aa89
2 changed files with 2 additions and 2 deletions

View File

@@ -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 .= "</li>\n";
$output .= '</li>';
}
} // Walker_Nav_Menu