Set RTL body class for iframes.
Props mitchoyoshitaka see #24149 git-svn-id: http://core.svn.wordpress.org/trunk@24994 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0e923a5c9d
commit
3a5f483e14
|
@ -1453,6 +1453,10 @@ do_action("admin_head-$hook_suffix");
|
|||
do_action('admin_head');
|
||||
|
||||
$admin_body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
|
||||
|
||||
if ( is_rtl() )
|
||||
$admin_body_class .= ' rtl';
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body<?php if ( isset($GLOBALS['body_id']) ) echo ' id="' . $GLOBALS['body_id'] . '"'; ?> class="wp-admin wp-core-ui no-js iframe <?php echo apply_filters( 'admin_body_class', '' ) . ' ' . $admin_body_class; ?>">
|
||||
|
|
Loading…
Reference in New Issue