Make WordPress Core


Ignore:
Timestamp:
06/11/2012 08:34:42 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.