mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
RTL enhancements from Sewar. #3136
git-svn-id: https://develop.svn.wordpress.org/trunk@4258 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1161,12 +1161,16 @@ function wp_die($message, $title = '') {
|
||||
|
||||
function _mce_set_direction() {
|
||||
global $wp_locale;
|
||||
if ('rtl' == $wp_locale->text_direction)
|
||||
|
||||
if ('rtl' == $wp_locale->text_direction) {
|
||||
echo 'directionality : "rtl" ,';
|
||||
echo 'theme_advanced_toolbar_align : "right" ,';
|
||||
}
|
||||
}
|
||||
|
||||
function _mce_load_rtl_plugin($input) {
|
||||
global $wp_locale;
|
||||
global $wp_locale;
|
||||
|
||||
if ('rtl' == $wp_locale->text_direction)
|
||||
$input[] = 'directionality';
|
||||
|
||||
@@ -1174,7 +1178,8 @@ function _mce_load_rtl_plugin($input) {
|
||||
}
|
||||
|
||||
function _mce_add_direction_buttons($input) {
|
||||
global $wp_locale;
|
||||
global $wp_locale;
|
||||
|
||||
if ('rtl' == $wp_locale->text_direction) {
|
||||
$new_buttons = array('separator', 'ltr', 'rtl');
|
||||
$input = array_merge($input, $new_buttons);
|
||||
|
||||
Reference in New Issue
Block a user