Make WordPress Core

Changeset 41066


Ignore:
Timestamp:
07/18/2017 01:44:58 AM (8 years ago)
Author:
westonruter
Message:

TinyMCE: fix directionality settings for RTL languages.

Merges [40927] to 4.8 branch.
Props westonruter, sa3idho.
Fixes #40972 for 4.8.1.

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

  • branches/4.8/src/wp-includes/class-wp-editor.php

    r40862 r41066  
    826826        $settings['indent'] = true;
    827827        $settings['elementpath'] = false;
     828
     829        if ( is_rtl() ) {
     830            $settings['directionality'] = 'rtl';
     831        }
    828832
    829833        // In production all plugins are loaded (they are in wp-editor.js.gz)
Note: See TracChangeset for help on using the changeset viewer.