mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user