From 03bc4e629913e2f10305aed9a70b3b2c268afa03 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 18 Aug 2015 17:01:50 +0000 Subject: [PATCH] About: Update release video to use the correct ID. Also adjusts locale handling to work with Videopress' subtitle implementation. Props siobhan, jacklenox, sararosso, hugobaeta, nickmomrik, rauchg. See #32929. git-svn-id: https://develop.svn.wordpress.org/trunk@33631 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/about.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/about.php b/src/wp-admin/about.php index f24462913b..e217c72bc2 100644 --- a/src/wp-admin/about.php +++ b/src/wp-admin/about.php @@ -22,9 +22,12 @@ list( $display_version ) = explode( '-', $wp_version ); include( ABSPATH . 'wp-admin/admin-header.php' ); -$video_url = 'https://videopress.com/embed/e9kH4FzP'; -$locale = strtolower( str_replace( '_', '-', get_locale() ) ); -if ( 'en-us' !== $locale ) { +$video_url = 'https://videopress.com/embed/T54Iy7Tw'; +$locale = str_replace( '_', '-', 'de_DE' ); +if ( 'en-AU' !== $locale ) { + list( $locale ) = explode( '-', $locale ); +} +if ( 'en' !== $locale ) { $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url ); }