WordPress.org

Make WordPress Core

Changeset 21052


Ignore:
Timestamp:
06/11/12 20:34:42 (3 years ago)
Author:
ryan
Message:

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

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/wp-admin.dev.css

    r21042 r21052  
    81968196    min-width: 5em; 
    81978197} 
    8198 .locale-ru-ru .press-this .posting { 
     8198.locale-ru-ru.press-this .posting { 
    81998199    margin-right: 257px; /* default 212px + 45px */ 
    82008200} 
    8201 .locale-ru-ru .press-this #photo-add-url-div input[type="text"]  { 
     8201.locale-ru-ru.press-this #photo-add-url-div input[type="text"]  { 
    82028202    width: 255px; /* default 300px - 45px */ 
    82038203} 
    8204 .locale-ru-ru .press-this #side-sortables { 
     8204.locale-ru-ru.press-this #side-sortables { 
    82058205    width: 245px; /* default 200px + 45px */ 
    82068206} 
  • trunk/wp-admin/press-this.php

    r20896 r21052  
    436436</script> 
    437437</head> 
    438 <body class="press-this wp-admin<?php if ( is_rtl() ) echo ' rtl'; ?>"> 
     438<?php 
     439$admin_body_class = ( is_rtl() ) ? 'rtl' : ''; 
     440$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); 
     441?> 
     442<body class="press-this wp-admin <?php echo $admin_body_class; ?>"> 
    439443<form action="press-this.php?action=post" method="post"> 
    440444<div id="poststuff" class="metabox-holder"> 
Note: See TracChangeset for help on using the changeset viewer.