From c9b8a5dbbba0b6eab579836db8f27653c69317a5 Mon Sep 17 00:00:00 2001 From: Weston Ruter Date: Mon, 5 Dec 2016 13:55:42 +0000 Subject: [PATCH] Customize: Ensure `textarea` for Custom CSS displays as code (in LTR) when an RTL language is active. See #35395. Fixes #39085. Built from https://develop.svn.wordpress.org/trunk@39499 git-svn-id: http://core.svn.wordpress.org/trunk@39439 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-customize-manager.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-customize-manager.php b/wp-includes/class-wp-customize-manager.php index 8905721c79..440a53712c 100644 --- a/wp-includes/class-wp-customize-manager.php +++ b/wp-includes/class-wp-customize-manager.php @@ -4128,6 +4128,9 @@ final class WP_Customize_Manager { 'type' => 'textarea', 'section' => 'custom_css', 'settings' => array( 'default' => $custom_css_setting->id ), + 'input_attrs' => array( + 'class' => 'code', // Ensures contents displayed as LTR instead of RTL. + ), ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 4e3c4ace2b..a784a70287 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-39496'; +$wp_version = '4.8-alpha-39499'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.