WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/05/2014 06:18:50 AM (8 years ago)
Author:
nacin
Message:

Introduce wp_dropdown_languages() and use it on general settings.

Early rough cut. Obviously not fully implemented.

see #15677.

File:
1 edited

Legend:

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

    r28848 r29007  
    305305<?php
    306306    $languages = get_available_languages();
    307     if ( is_multisite() && !empty( $languages ) ):
     307    if ( $languages ) :
    308308?>
    309309    <tr>
    310310        <th width="33%" scope="row"><?php _e('Site Language') ?></th>
    311311        <td>
    312             <select name="WPLANG" id="WPLANG">
    313                 <?php mu_dropdown_languages( $languages, get_option('WPLANG') ); ?>
    314             </select>
     312            <?php wp_dropdown_languages( array(
     313                'name'      => 'WPLANG',
     314                'id'        => 'WPLANG',
     315                'selected'  => get_option( 'WPLANG' ),
     316                'languages' => $languages,
     317            ) ); ?>
    315318        </td>
    316319    </tr>
Note: See TracChangeset for help on using the changeset viewer.