diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index ed91e5bd17..527d740c0a 100644 --- a/wp-includes/general-template.php +++ b/wp-includes/general-template.php @@ -715,7 +715,7 @@ function get_bloginfo( $show = '', $filter = 'raw' ) { */ $output = __( 'html_lang_attribute' ); if ( 'html_lang_attribute' === $output || preg_match( '/[^a-zA-Z0-9-]/', $output ) ) { - $output = get_locale(); + $output = is_admin() ? get_user_locale() : get_locale(); $output = str_replace( '_', '-', $output ); } break;