Make WordPress Core

Ticket #40271: 40271.diff

File 40271.diff, 580 bytes (added by swissspidy, 8 years ago)
  • src/wp-admin/customize.php

    diff --git src/wp-admin/customize.php src/wp-admin/customize.php
    index 44654c003f..f1e66ff3dd 100644
    if ( $wp_customize->is_ios() ) { 
    102102if ( is_rtl() ) {
    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…' ) );
    108108