From 8d8252aa89b9190366bc993d95e8f4b196b17b91 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Sat, 19 Sep 2015 11:40:26 +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. Built from https://develop.svn.wordpress.org/trunk@34321 git-svn-id: http://core.svn.wordpress.org/trunk@34285 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/nav-menu-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index 7a61031a16..f23f6b9e90 100644 --- a/wp-includes/nav-menu-template.php +++ b/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 diff --git a/wp-includes/version.php b/wp-includes/version.php index 1b24236e0b..ff8a997335 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.