Opened 17 years ago
Closed 17 years ago
#12618 closed defect (bug) (fixed)
Argument Continuity in wp_nav_menu
| Reported by: | thee17 | Owned by: | ptahdunbar |
|---|---|---|---|
| Priority: | high | Milestone: | 3.0 |
| Component: | Menus | Version: | 3.0 |
| Severity: | normal | Keywords: | accepted |
| Cc: | Focuses: |
Description
the new function wp_nav_menu() uses inconsistent $arg names to the rest of the wp_list_ functions.
before_link - Output text before the link.
after_link - Output text after the link.
before_title - Output text before the link text.
after_title - Output text after the link text.
elsewhere it is
before - Output text before the link.
after - Output text after the link.
link_before - Output text before the link text.
link_after - Output text after the link text.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looking over the wp_lists_* functions, there's no args for text before and after links. link_before/after are used for before/after the actual link text. I'll just use before/after for text before and after the links.
New args: