Introduce wp_dropdown_languages() and use it on general settings.

Early rough cut. Obviously not fully implemented.

see #15677.


git-svn-id: https://develop.svn.wordpress.org/trunk@29007 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin
2014-07-05 06:18:50 +00:00
parent 277ada83d8
commit a6ff9013be
3 changed files with 29 additions and 6 deletions

View File

@@ -304,14 +304,17 @@ endfor;
<?php do_settings_fields('general', 'default'); ?>
<?php
$languages = get_available_languages();
if ( is_multisite() && !empty( $languages ) ):
if ( $languages ) :
?>
<tr>
<th width="33%" scope="row"><?php _e('Site Language') ?></th>
<td>
<select name="WPLANG" id="WPLANG">
<?php mu_dropdown_languages( $languages, get_option('WPLANG') ); ?>
</select>
<?php wp_dropdown_languages( array(
'name' => 'WPLANG',
'id' => 'WPLANG',
'selected' => get_option( 'WPLANG' ),
'languages' => $languages,
) ); ?>
</td>
</tr>
<?php