Make WordPress Core

Ticket #42242: 42242.patch

File 42242.patch, 545 bytes (added by ocean90, 7 years ago)
  • src/wp-includes/general-template.php

     
    703703                         */
    704704                        $output = __( 'html_lang_attribute' );
    705705                        if ( 'html_lang_attribute' === $output || preg_match( '/[^a-zA-Z0-9-]/', $output ) ) {
    706                                 $output = get_locale();
     706                                $output = is_admin() ? get_user_locale() : get_locale();
    707707                                $output = str_replace( '_', '-', $output );
    708708                        }
    709709                        break;