Make WordPress Core

Changeset 34321


Ignore:
Timestamp:
09/19/2015 11:39:39 AM (11 years ago)
Author:
obenland
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu-template.php

    r33775 r34321  
    186186         */
    187187        public function end_el( &$output, $item, $depth = 0, $args = array() ) {
    188                 $output .= "</li>\n";
     188                $output .= '</li>';
    189189        }
    190190
Note: See TracChangeset for help on using the changeset viewer.