Give menu items a default 'draft' state when added to the menu. props filosofo, fixes #13149
git-svn-id: https://develop.svn.wordpress.org/trunk@14271 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
385b717f08
commit
aeb062fbc5
@ -824,7 +824,7 @@ function wp_get_nav_menu_to_edit( $menu_item_id = 0 ) {
|
||||
|
||||
// If the menu exists, get its items.
|
||||
if ( is_nav_menu( $menu ) ) {
|
||||
$menu_items = wp_get_nav_menu_items( $menu->term_id );
|
||||
$menu_items = wp_get_nav_menu_items( $menu->term_id, array('post_status' => 'any') );
|
||||
|
||||
$walker = new Walker_Nav_Menu_Edit;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user