Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [21052] trunk/wp-admin: Add RTL and locale classes to the press this body. Date:Mon, 11 Jun 2012 20:34:42 +0000 (UTC)
 

Revision
21052
Author
ryan
Date
2012-06-11 20:34:42 +0000 (Mon, 11 Jun 2012)

Log Message

Add RTL and locale classes to the press this body. Props SergeyBiryukov. fixes #19603

Modified Paths

Diff

Modified: trunk/wp-admin/css/wp-admin.dev.css (21051 => 21052)


--- trunk/wp-admin/css/wp-admin.dev.css	2012-06-11 20:32:21 UTC (rev 21051)
+++ trunk/wp-admin/css/wp-admin.dev.css	2012-06-11 20:34:42 UTC (rev 21052)
@@ -8195,13 +8195,13 @@
 	width: auto; /* default 5em */
 	min-width: 5em;
 }
-.locale-ru-ru .press-this .posting {
+.locale-ru-ru.press-this .posting {
 	margin-right: 257px; /* default 212px + 45px */
 }
-.locale-ru-ru .press-this #photo-add-url-div input[type="text"]  {
+.locale-ru-ru.press-this #photo-add-url-div input[type="text"]  {
 	width: 255px; /* default 300px - 45px */
 }
-.locale-ru-ru .press-this #side-sortables {
+.locale-ru-ru.press-this #side-sortables {
 	width: 245px; /* default 200px + 45px */
 }
 

Modified: trunk/wp-admin/press-this.php (21051 => 21052)


--- trunk/wp-admin/press-this.php	2012-06-11 20:32:21 UTC (rev 21051)
+++ trunk/wp-admin/press-this.php	2012-06-11 20:34:42 UTC (rev 21052)
@@ -435,7 +435,11 @@
 	});
 </script>
 </head>
-<body class="press-this wp-admin<?php if ( is_rtl() ) echo ' rtl'; ?>">
+<?php
+$admin_body_class = ( is_rtl() ) ? 'rtl' : '';
+$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
+?>
+<body class="press-this wp-admin <?php echo $admin_body_class; ?>">
 <form action="press-this.php?action=post" method="post">
 <div id="poststuff" class="metabox-holder">
 	<div id="side-sortables" class="press-this-sidebar">