Changeset 18882
- Timestamp:
- 10/05/2011 07:09:51 AM (13 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r18860 r18882 1352 1352 global $hook_suffix, $current_screen, $current_user, $admin_body_class, $wp_locale; 1353 1353 $admin_body_class = preg_replace('/[^a-z0-9_-]+/i', '-', $hook_suffix); 1354 $admin_body_class .= ' iframe';1355 1354 1356 1355 ?><!DOCTYPE html> … … 1390 1389 ?> 1391 1390 </head> 1392 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class=" no-js <?php echo$admin_body_class; ?>">1391 <body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>"> 1393 1392 <script type="text/javascript"> 1394 1393 //<![CDATA[ -
trunk/wp-admin/nav-menus.php
r18867 r18882 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 439 440 add_ action('admin_body_class','wp_nav_menu_max_depth');440 add_filter('admin_body_class', 'wp_nav_menu_max_depth'); 441 441 442 442 wp_nav_menu_setup(); -
trunk/wp-admin/widgets.php
r18867 r18882 22 22 } 23 23 24 function wp_widgets_access_body_class($classes) { 25 return "$classes widgets_access "; 26 } 27 24 28 if ( 'on' == $widgets_access ) 25 add_filter( 'admin_body_class', create_function('', '{return " widgets_access ";}'));29 add_filter( 'admin_body_class', 'wp_widgets_access_body_class' ); 26 30 else 27 31 wp_enqueue_script('admin-widgets');
Note: See TracChangeset
for help on using the changeset viewer.