Ticket #3136: tinymce-fixdir-action.diff
| File tinymce-fixdir-action.diff, 1.6 KB (added by , 19 years ago) |
|---|
-
wp-includes/default-filters.php
141 141 // Misc filters 142 142 add_filter('option_ping_sites', 'privacy_ping_filter'); 143 143 add_filter('option_blog_charset', 'wp_specialchars'); 144 add_filter("mce_plugins","mce_load_rtl_plugin"); 145 add_filter("mce_buttons","mce_add_dir_buttons"); 144 146 145 147 // Actions 146 148 add_action('wp_head', 'rsd_link'); … … 158 160 add_action('do_robots', 'do_robots'); 159 161 add_action('sanitize_comment_cookies', 'sanitize_comment_cookies'); 160 162 add_action('admin_print_scripts', 'wp_print_scripts', 20); 163 add_action('mce_options','mce_fixdir'); 161 164 ?> -
wp-includes/pluggable.php
513 513 } 514 514 endif; 515 515 516 if ( !function_exists('mce_fixdir') ) : 517 function mce_fixdir() { 518 global $wp_locale; 519 if ('rtl' == $wp_locale->text_direction) { 520 echo "directionality : \"rtl\" ,"; 521 } 522 } 523 endif; 524 525 if ( !function_exists('mce_load_rtl_plugin') ) : 526 function mce_load_rtl_plugin($input) { 527 global $wp_locale; 528 if ('rtl' == $wp_locale->text_direction) { 529 $input[] = "directionality"; 530 } 531 return $input; 532 } 533 endif; 534 535 if ( !function_exists('mce_add_dir_buttons') ) : 536 function mce_add_dir_buttons($input) { 537 global $wp_locale; 538 if ('rtl' == $wp_locale->text_direction) { 539 $new_buttons = array("separator","ltr","rtl"); 540 $input = array_merge($input,$new_buttons); 541 } 542 return $input; 543 } 544 endif; 545 516 546 ?>