WordPress.org

Make WordPress Core

Changeset 40369


Ignore:
Timestamp:
04/03/2017 10:40:59 PM (3 years ago)
Author:
swissspidy
Message:

Customize: Use 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.

Merges [40368] to the 4.7 branch.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.7

  • branches/4.7/src/wp-admin/customize.php

    r39218 r40369  
    103103    $body_class .= ' rtl';
    104104}
    105 $body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_locale() ) ) );
     105$body_class .= ' locale-' . sanitize_html_class( strtolower( str_replace( '_', '-', get_user_locale() ) ) );
    106106
    107107$admin_title = sprintf( $wp_customize->get_document_title_template(), __( 'Loading…' ) );
Note: See TracChangeset for help on using the changeset viewer.