[wp-trac] [WordPress Trac] #24100: wp_nav_menu before and after argument tweak
WordPress Trac
noreply at wordpress.org
Tue Apr 16 08:51:57 UTC 2013
#24100: wp_nav_menu before and after argument tweak
-----------------------------+-------------------------
Reporter: Clorith | Type: enhancement
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Menus
Version: 3.5.1 | Severity: minor
Keywords: has-patch |
-----------------------------+-------------------------
When using the 'before', 'after' and link equivilants WP outputs the menu
with these added to the first/last elements as well;
{{{wp_nav_menu( array( 'before' => '|' ) );}}}
The above will output as `|Item1|Item2`, but for a menu separator this
does not make sense as the first item doesn't need to be separated before
it begins, appropriate output should be `Item1|Item2`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24100>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list