Make WordPress Core


Ignore:
Timestamp:
10/05/2011 07:09:51 AM (12 years ago)
Author:
dd32
Message:

Fix admin_body_class filter for Menu's and Widgets pages, Include the filter in Iframe's. Props SergeyBiryukov & johnbillion. Fixes #18853

File:
1 edited

Legend:

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

    r18867 r18882  
    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
    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();
Note: See TracChangeset for help on using the changeset viewer.