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:
nacin 2010-04-28 05:02:09 +00:00
parent 560400fb26
commit 540dcf5108

View File

@ -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;