mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-29 07:37:44 +02: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. 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:
parent
4ff29f822e
commit
8d8252aa89
@ -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
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-34320';
|
$wp_version = '4.4-alpha-34321';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user