WordPress.org

Make WordPress Core

Ticket #18853: 18853.2.patch

File 18853.2.patch, 731 bytes (added by johnbillion, 7 years ago)
  • wp-admin/nav-menus.php

     
    432432if ( is_nav_menu( $nav_menu_selected_id ) )
    433433        $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id  );
    434434
    435 function wp_nav_menu_max_depth() {
     435function wp_nav_menu_max_depth( $classes ) {
    436436        global $_wp_nav_menu_max_depth;
    437         return "menu-max-depth-$_wp_nav_menu_max_depth";
     437        return "menu-max-depth-$_wp_nav_menu_max_depth $classes";
    438438}
    439439
    440 add_action('admin_body_class','wp_nav_menu_max_depth');
     440add_filter('admin_body_class','wp_nav_menu_max_depth');
    441441
    442442wp_nav_menu_setup();
    443443wp_initial_nav_menu_meta_boxes();