From 209f213f5676a20bde22a8419be7ae1e0e720612 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 2 Jun 2011 22:19:58 +0000 Subject: [PATCH] Add rtl class to the admin body if is_rtl(). RTL fixes for twentyeleven theme-options.php. Props rasheed. fixes #17603 git-svn-id: http://svn.automattic.com/wordpress/trunk@18125 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 3 +++ wp-content/themes/twentyeleven/inc/theme-options.css | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index b649209cb..11f91d67f 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -85,6 +85,9 @@ if ( get_user_setting('mfold') == 'f' ) if ( is_admin_bar_showing() ) $admin_body_class .= ' admin-bar'; +if ( is_rtl() ) + $admin_body_class .= ' rtl'; + $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' ); diff --git a/wp-content/themes/twentyeleven/inc/theme-options.css b/wp-content/themes/twentyeleven/inc/theme-options.css index 34a4b5274..464ab8c46 100644 --- a/wp-content/themes/twentyeleven/inc/theme-options.css +++ b/wp-content/themes/twentyeleven/inc/theme-options.css @@ -27,4 +27,9 @@ border: 1px solid #dfdfdf; margin: 0 7px 0 3px; padding: 4px 14px; -} \ No newline at end of file +} + +body.rtl .image-radio-option label { + float: right; + margin: 0 2px 20px 30px; +}