Make WordPress Core


Ignore:
Timestamp:
10/26/2016 12:10:35 PM (8 years ago)
Author:
ocean90
Message:

About Page: Use get_user_language() for the video subtitles.

Rename $locale to $lang_code to avoid stomping of the global $locale.

See #38485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/about.php

    r38459 r38952  
    3535
    3636$video_url = 'https://videopress.com/embed/GbdhpGF3?hd=true';
    37 $locale    = str_replace( '_', '-', get_locale() );
    38 list( $locale ) = explode( '-', $locale );
    39 if ( 'en' !== $locale ) {
    40     $video_url = add_query_arg( 'defaultLangCode', $locale, $video_url );
     37$lang_code = str_replace( '_', '-', get_user_locale() );
     38list( $lang_code ) = explode( '-', $lang_code );
     39if ( 'en' !== $lang_code ) {
     40    $video_url = add_query_arg( 'defaultLangCode', $lang_code, $video_url );
    4141}
    4242
Note: See TracChangeset for help on using the changeset viewer.