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
This commit is contained in:
Konstantin Obenland 2015-08-18 17:01:50 +00:00
parent 48beba441b
commit 03bc4e6299
1 changed files with 6 additions and 3 deletions

View File

@ -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 );
}