Make WordPress Core

Ticket #13120: editor-syle-rtl.patch

File editor-syle-rtl.patch, 615 bytes (added by yoavf, 16 years ago)
  • wp-includes/theme.php

     
    15721572        global $editor_styles;
    15731573        $editor_styles = (array) $editor_styles;
    15741574        $stylesheet    = (array) $stylesheet;
     1575        if ('rtl' == get_bloginfo('text_direction') ) {
     1576                $rtl_stylesheet = str_replace('.css', '-rtl.css', $stylesheet[0]);
     1577                $stylesheet[] = $rtl_stylesheet;
     1578        }
     1579
    15751580        $editor_styles = array_merge( $editor_styles, $stylesheet );
    15761581}
    1577 
    15781582/**
    15791583 * Allows a theme to register its support of a certain feature
    15801584 *