From 36e260f1b589ef1d214b8b7b0790de864b7fdc05 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 26 Oct 2016 12:10:35 +0000 Subject: [PATCH] About Page: Use `get_user_language()` for the video subtitles. Rename `$locale` to `$lang_code` to avoid stomping of the global `$locale`. See #38485. git-svn-id: https://develop.svn.wordpress.org/trunk@38952 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/about.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index 5bf7139ca3..b86e09e44c 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -34,10 +34,10 @@ function _wp_override_admin_video_width_limit( $output ) { } $video_url = 'https://videopress.com/embed/GbdhpGF3?hd=true'; -$locale = str_replace( '_', '-', get_locale() ); -list( $locale ) = explode( '-', $locale ); -if ( 'en' !== $locale ) { - $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url ); +$lang_code = str_replace( '_', '-', get_user_locale() ); +list( $lang_code ) = explode( '-', $lang_code ); +if ( 'en' !== $lang_code ) { + $video_url = add_query_arg( 'defaultLangCode', $lang_code, $video_url ); } $title = __( 'About' );