Make WordPress Core


Ignore:
Timestamp:
05/28/2010 11:04:00 PM (14 years ago)
Author:
nacin
Message:

Sanity check menu item parents and fix HTML issues. props filosofo, fixes #13600.

File:
1 edited

Legend:

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

    r15047 r15049  
    10071007
    10081008        if( empty($menu_items) )
    1009             return $result;
     1009            return $result . ' <ul class="menu" id="menu-to-edit"> </ul>';
    10101010
    10111011        $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );
     
    10251025            $result .= '<div class="updated inline"><p>' . __('Click Save Menu to make pending menu items public.') . '</p></div>';
    10261026
     1027        $result .= '<ul class="menu" id="menu-to-edit"> ';
    10271028        $result .= walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $menu_items), 0, (object) array('walker' => $walker ) );
     1029        $result .= ' </ul> ';
    10281030        return $result;
    10291031    } elseif ( is_wp_error( $menu ) ) {
Note: See TracChangeset for help on using the changeset viewer.