Set RTL body class for iframes.
Props mitchoyoshitaka see #24149 git-svn-id: https://develop.svn.wordpress.org/trunk@24994 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
98e65b8f77
commit
d05c31d063
|
@ -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