WordPress.org

Make WordPress Core

Ticket #19247: 19247.2.patch

File 19247.2.patch, 808 bytes (added by DrewAPicture, 19 months ago)

space it since it's new

  • wp-admin/admin-header.php

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