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.
git-svn-id: http://svn.automattic.com/wordpress/trunk@14971 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -318,7 +318,7 @@ switch ( $action ) {
|
||||
// Update menu items
|
||||
|
||||
if ( ! is_wp_error( $_menu_object ) ) {
|
||||
$unsorted_menu_items = wp_get_nav_menu_items( $nav_menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID') );
|
||||
$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') );
|
||||
$menu_items = array();
|
||||
// Index menu items by db ID
|
||||
foreach( $unsorted_menu_items as $_item )
|
||||
|
||||
Reference in New Issue
Block a user