mirror of
git://develop.git.wordpress.org/
synced 2025-02-25 17:13:30 +01:00
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
This commit is contained in:
parent
7bdfb4917f
commit
bfc9fc4040
@ -185,7 +185,7 @@ class Walker_Nav_Menu extends Walker {
|
|||||||
* @param array $args An array of arguments. @see wp_nav_menu()
|
* @param array $args An array of arguments. @see wp_nav_menu()
|
||||||
*/
|
*/
|
||||||
public function end_el( &$output, $item, $depth = 0, $args = array() ) {
|
public function end_el( &$output, $item, $depth = 0, $args = array() ) {
|
||||||
$output .= "</li>\n";
|
$output .= '</li>';
|
||||||
}
|
}
|
||||||
|
|
||||||
} // Walker_Nav_Menu
|
} // Walker_Nav_Menu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user