WordPress.org

Make WordPress Core

Changeset 14271


Ignore:
Timestamp:
04/28/10 05:02:09 (4 years ago)
Author:
nacin
Message:

Give menu items a default 'draft' state when added to the menu. props filosofo, fixes #13149

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/nav-menu.php

    r14267 r14271  
    825825    // If the menu exists, get its items. 
    826826    if ( is_nav_menu( $menu ) ) { 
    827         $menu_items = wp_get_nav_menu_items( $menu->term_id ); 
     827        $menu_items = wp_get_nav_menu_items( $menu->term_id, array('post_status' => 'any') ); 
    828828 
    829829        $walker = new Walker_Nav_Menu_Edit;  
Note: See TracChangeset for help on using the changeset viewer.