Opened 10 years ago
Closed 5 years ago
#28514 closed defect (bug) (worksforme)
wp_get_nav_menu_items get_posts returns false when used on wp-admin/edit.php
Reported by: | evandentremont | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.9.1 |
Component: | Menus | Keywords: | |
Focuses: | administration | Cc: |
Description (last modified by )
Works fine on wp-admin/index.php
returns false on wp-admin/edit.php
$args were correct and valid, yet get_post returns false.
I was able to make it work via the following change
/*$items = get_posts( $args );*/ $menuitems = $items; $items = array(); foreach($menuitems as $menuitem){ $items[] = get_post($menuitem); }
Change History (4)
Note: See
TracTickets for help on using
tickets.
hi @evandentremont i don't really get to understand the issue, i mean how i can reproduce or how do i see the issue?
thanks