From 7f6ae69843783519ba2ca9e17415c575ed027155 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Sat, 24 Jun 2017 09:19:43 +0000 Subject: [PATCH] TinyMCE: fix directionality settings for RTL languages. Props westonruter, sa3idho. Fixes #40972 for trunk. Built from https://develop.svn.wordpress.org/trunk@40927 git-svn-id: http://core.svn.wordpress.org/trunk@40777 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 4 ++++ wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index 73de84de2b..da39c96de1 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -826,6 +826,10 @@ final class _WP_Editors { $settings['indent'] = true; $settings['elementpath'] = false; + if ( is_rtl() ) { + $settings['directionality'] = 'rtl'; + } + // In production all plugins are loaded (they are in wp-editor.js.gz) // but only these will be initialized by default. $settings['plugins'] = implode( ',', array( diff --git a/wp-includes/version.php b/wp-includes/version.php index cc0cf154e4..10c0458bef 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9-alpha-40926'; +$wp_version = '4.9-alpha-40927'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.