Changeset 6789 for trunk/wp-includes/functions.php
- Timestamp:
- 02/11/2008 05:45:18 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r6786 r6789 1383 1383 1384 1384 1385 function _mce_set_direction( ) {1385 function _mce_set_direction( $input ) { 1386 1386 global $wp_locale; 1387 1387 1388 1388 if ( 'rtl' == $wp_locale->text_direction ) { 1389 echo 'directionality : "rtl" ,'; 1390 echo 'theme_advanced_toolbar_align : "right" ,'; 1391 } 1392 } 1393 1394 1395 function _mce_load_rtl_plugin( $input ) { 1396 global $wp_locale; 1397 1398 if ( 'rtl' == $wp_locale->text_direction ) 1399 $input[] = 'directionality'; 1400 1401 return $input; 1402 } 1403 1404 1405 function _mce_add_direction_buttons( $input ) { 1406 global $wp_locale; 1407 1408 if ( 'rtl' == $wp_locale->text_direction ) { 1409 $new_buttons = array( 'separator', 'ltr', 'rtl' ); 1410 $input = array_merge( $input, $new_buttons ); 1389 $input['directionality'] = 'rtl'; 1390 $input['theme_advanced_toolbar_align'] = 'right'; 1391 $input['plugins'] .= ',directionality'; 1392 $input['theme_advanced_buttons2'] .= ',|,ltr,rtl'; 1411 1393 } 1412 1394
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)