From e1a08e199a185a158ba9e6866dd7a17308a56df0 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Wed, 5 Apr 2017 02:16:02 +0000 Subject: [PATCH] Customize: User `get_user_locale()` in customizer body class. Otherwise CSS specific to the site's locale would be applied, even though the customizer is displayed in the user's locale. See #29783. Fixes #40271. Built from https://develop.svn.wordpress.org/trunk@40368 git-svn-id: http://core.svn.wordpress.org/trunk@40275 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/customize.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/customize.php b/wp-admin/customize.php index 44654c003f..f1e66ff3dd 100644 --- a/wp-admin/customize.php +++ b/wp-admin/customize.php @@ -102,7 +102,7 @@ if ( $wp_customize->is_ios() ) { if ( is_rtl() ) { $body_class .= ' rtl'; } -$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) ); +$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) ); $admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 995937ca02..8451f86520 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40364'; +$wp_version = '4.8-alpha-40368'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.