Add admin body classes for the WP branch, WP version, and current admin color. props andy, fixes #17496.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17957 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-05-18 18:11:48 +00:00
parent 9f11444c89
commit 9c7fce4ed5
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ if ( get_user_setting('mfold') == 'f' )
if ( is_admin_bar_showing() )
$admin_body_class .= ' admin-bar';
$admin_body_class .= ' branch-' . str_replace( '.', '-', floatval( $wp_version ) );
$admin_body_class .= ' version-' . str_replace( '.', '-', preg_replace( '/^([.0-9]+).*/', '$1', $wp_version ) );
$admin_body_class .= ' admin-color-' . sanitize_html_class( get_user_option( 'admin_color' ), 'fresh' );
if ( $is_iphone ) { ?>
<style type="text/css">.row-actions{visibility:visible;}</style>
<?php } ?>