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:
parent
48beba441b
commit
03bc4e6299
@ -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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user