WordPress.org

Make WordPress Core

Ticket #18853: 18853.patch

File 18853.patch, 613 bytes (added by SergeyBiryukov, 3 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 "$classes menu-max-depth-$_wp_nav_menu_max_depth"; 
    438438} 
    439439 
    440440add_action('admin_body_class','wp_nav_menu_max_depth');