Make WordPress Core


Ignore:
Timestamp:
11/01/2016 09:15:42 AM (7 years ago)
Author:
swissspidy
Message:

I18N: Show available timezones in the user's locale on the settings screen.

Adds a $locale parameter to wp_timezone_choice() to only reload translations when necessary.

Props yale01.
See #38485.

File:
1 edited

Legend:

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

    r38720 r39068  
    148148
    149149<select id="timezone_string" name="timezone_string" aria-describedby="timezone-description">
    150 <?php echo wp_timezone_choice($tzstring); ?>
     150    <?php echo wp_timezone_choice( $tzstring, get_user_locale() ); ?>
    151151</select>
    152152
Note: See TracChangeset for help on using the changeset viewer.