Opened 12 years ago
Closed 12 years ago
#28515 closed enhancement (fixed)
wp_get_nav_menu_items using old syntax
| Reported by: | evandentremont | Owned by: | wonderboymusic |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.0 |
| Component: | Menus | Version: | 3.9.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description (last modified by )
In nav-menu.php, function wp_get_nav_menu_items()
if ( count( $items ) > 1 ) $args['include'] = implode( ',', $items ); else $args['include'] = $items[0];
can be replaced by
$args['include'] = items;
"Beginning with Version 3.0, an array of Page ID also can be used." I presume that applies to posts as well since posts page says to "See also get_pages() for example parameter usage."
Attachments (1)
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Updated args to send array value for include parameter