Ticket #18853: 18853.3.patch
File 18853.3.patch, 1.2 KB (added by , 13 years ago) |
---|
-
wp-admin/nav-menus.php
432 432 if ( is_nav_menu( $nav_menu_selected_id ) ) 433 433 $edit_markup = wp_get_nav_menu_to_edit( $nav_menu_selected_id ); 434 434 435 function wp_nav_menu_max_depth( ) {435 function wp_nav_menu_max_depth( $classes ) { 436 436 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"; 438 438 } 439 add_filter('admin_body_class', 'wp_nav_menu_max_depth'); 439 440 440 add_action('admin_body_class','wp_nav_menu_max_depth');441 442 441 wp_nav_menu_setup(); 443 442 wp_initial_nav_menu_meta_boxes(); 444 443 -
wp-admin/widgets.php
22 22 } 23 23 24 24 if ( 'on' == $widgets_access ) 25 add_filter( 'admin_body_class', create_function(' ', '{return " widgets_access";}') );25 add_filter( 'admin_body_class', create_function('$classes', '{return "$classes widgets_access";}') ); 26 26 else 27 27 wp_enqueue_script('admin-widgets'); 28 28