[wp-trac] [WordPress Trac] #35206: Allow theme authors to control white space between menu items
WordPress Trac
noreply at wordpress.org
Wed Dec 23 01:32:25 UTC 2015
#35206: Allow theme authors to control white space between menu items
---------------------------+-----------------------------
Reporter: peterwilsoncc | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords: needs-patch
Focuses: template |
---------------------------+-----------------------------
Sometimes menu items are best floated, sometimes they're best as inline-
blocks. Whitespace between the `li`s can have an affect on layout for the
later.
Let's allow theme authors to control the white space between menu items:
* remove `\n`, `\r`, `\t` string replacement in wp_page_menu since [9246]
* Introduce `item_before` and `item_after` arguments to
- `wp_nav_menu`
- `wp_list_pages`
- `wp_page_menu`
* `item_before` defaults to an empty string
* for the first two functions `item_after` defaults to a line-break to
match the current behaviour
* for `wp_page_menu`, `item_after` defaults to an empty string to match
the current behaviour
Related #27762 and #35107.
Patch will need to follow the resolution of #35107.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35206>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list