WordPress.org

Make WordPress Core

Ticket #17496: 17496.diff

File 17496.diff, 669 bytes (added by andy, 3 years ago)
  • wp-admin/admin-header.php

     
    8585if ( is_admin_bar_showing() ) 
    8686        $admin_body_class .= ' admin-bar'; 
    8787 
     88$admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) ); 
     89$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) ); 
     90$admin_body_class .= ' admin-color-' . get_user_option( 'admin_color', $user_id ); 
     91 
    8892if ( $is_iphone ) { ?> 
    8993<style type="text/css">.row-actions{visibility:visible;}</style> 
    9094<?php } ?>