Make WordPress Core

Ticket #19247: 19247.patch

File 19247.patch, 811 bytes (added by johnbillion, 13 years ago)
  • wp-admin/admin-header.php

     
    7878if ( is_rtl() )
    7979        $admin_body_class .= ' rtl';
    8080
     81if ( !empty( $current_screen->post_type ) )
     82        $admin_body_class .= ' post-type-' . $current_screen->post_type;
     83
     84if ( !empty( $current_screen->taxonomy ) )
     85        $admin_body_class .= ' taxonomy-' . $current_screen->taxonomy;
     86
    8187$admin_body_class .= ' branch-' . str_replace( array( '.', ',' ), '-', floatval( $wp_version ) );
    8288$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
    8389$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );