Make WordPress Core


Ignore:
Timestamp:
05/27/2010 02:24:33 AM (14 years ago)
Author:
nacin
Message:

Move the "Add Home Link" functionality to a checkbox on the View All tab of the Pages metabox. Also makes it work non-JS. props filosofo, fixes #13213.

File:
1 edited

Legend:

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

    r14951 r14971  
    319319
    320320            if ( ! is_wp_error( $_menu_object ) ) {
    321                 $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID') );
     321                $unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID', 'post_status' => 'draft,publish') );
    322322                $menu_items = array();
    323323                // Index menu items by db ID
Note: See TracChangeset for help on using the changeset viewer.