Make WordPress Core

Changeset 13348

Timestamp:
02/23/2010 11:13:54 PM (14 years ago)
Author:
wpmuguru
Message:

fix custom menu hierarchy support in admin, See #11817

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/custom-navigation.php

    r13344 r13348  
    107107} elseif ( $postCounter > 0 && $menu_selected_id > 0 ) {
    108108    $menu_items = wp_get_nav_menu_items( $menu_selected_id, array('orderby' => 'ID', 'output' => ARRAY_A, 'output_key' => 'ID') );
     109
    109110
    110111    // Loop through all POST variables
     
    131132        else
    132133            $post['post_content_filtered'] = '';
    133         if ( $parent_id > 0 && isset( $_POST[ 'dbid' . $parent_id ] ) )
    134             $post[ 'post_parent' ] = (int) $_POST[ 'dbid' . $parent_id ];
     134        if ( $parent_id > 0 && isset( $ $parent_id ] ) )
     135            $post[ 'post_parent' ] = $parent_id ];
    135136
    136137        // New menu item
     
    142143            unset( $menu_items[$db_id] );
    143144        }
     145
     146
    144147        update_post_meta($db_id, 'menu_type', $linktype);
    145148        update_post_meta($db_id, 'object_id', $object_id);
Note: See TracChangeset for help on using the changeset viewer.