mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Introduce is_rtl(). Use it in core. It only becomes defined when locale is loaded, so it's impossible to use it too early. Deprecate the get_bloginfo('text_direction') call. fixes #13206.
git-svn-id: https://develop.svn.wordpress.org/trunk@14360 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1580,7 +1580,7 @@ function add_editor_style( $stylesheet = 'editor-style.css' ) {
|
||||
global $editor_styles;
|
||||
$editor_styles = (array) $editor_styles;
|
||||
$stylesheet = (array) $stylesheet;
|
||||
if ('rtl' == get_bloginfo('text_direction') ) {
|
||||
if ( is_rtl() ) {
|
||||
$rtl_stylesheet = str_replace('.css', '-rtl.css', $stylesheet[0]);
|
||||
$stylesheet[] = $rtl_stylesheet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user