WordPress.org

Make WordPress Core

Changeset 14240


Ignore:
Timestamp:
04/26/2010 02:56:57 PM (8 years ago)
Author:
ryan
Message:

Add RTL support to add_editor_style(). Props yoavf. fixes #13120

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r14175 r14240  
    15611561    $editor_styles = (array) $editor_styles;
    15621562    $stylesheet    = (array) $stylesheet;
     1563    if ('rtl' == get_bloginfo('text_direction') ) {
     1564        $rtl_stylesheet = str_replace('.css', '-rtl.css', $stylesheet[0]);
     1565        $stylesheet[] = $rtl_stylesheet;
     1566    }
     1567
    15631568    $editor_styles = array_merge( $editor_styles, $stylesheet );
    15641569}
Note: See TracChangeset for help on using the changeset viewer.