mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Give menu items a default 'draft' state when added to the menu. props filosofo, fixes #13149
git-svn-id: http://svn.automattic.com/wordpress/trunk@14271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
560400fb26
commit
540dcf5108
@ -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