Opened 11 years ago
Closed 11 years ago
#28515 closed enhancement (fixed)
wp_get_nav_menu_items using old syntax
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.0 | Priority: | normal |
Severity: | normal | Version: | 3.9.1 |
Component: | Menus | Keywords: | has-patch |
Focuses: | Cc: |
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.
Updated args to send array value for include parameter