Changeset 29630 for trunk/src/wp-admin/network/settings.php
- Timestamp:
- 08/26/2014 07:58:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/network/settings.php
r29030 r29630 103 103 <p class="description"> 104 104 <?php _e( 'This email address will receive notifications. Registration and support emails will also come from this address.' ); ?> 105 </p> 105 </p> 106 106 </td> 107 107 </tr> … … 166 166 <p class="description"> 167 167 <?php _e( 'If you want to limit site registrations to certain domains. One domain per line.' ) ?> 168 </p> 168 </p> 169 169 </td> 170 170 </tr> … … 232 232 <p class="description"> 233 233 <?php _e( 'The first comment on a new site.' ) ?> 234 </p> 234 </p> 235 235 </td> 236 236 </tr> … … 274 274 </table> 275 275 276 <?php276 <?php 277 277 $languages = get_available_languages(); 278 278 if ( ! empty( $languages ) ) { 279 $lang = get_site_option( 'WPLANG' ); 280 ?> 281 <h3><?php _e( 'Language Settings' ); ?></h3> 282 <table class="form-table"> 279 ?> 280 <h3><?php _e( 'Language Settings' ); ?></h3> 281 <table class="form-table"> 283 282 <tr> 284 283 <th><label for="WPLANG"><?php _e( 'Default Language' ); ?></label></th> 285 284 <td> 286 <select name="WPLANG" id="WPLANG"> 287 <?php mu_dropdown_languages( $languages, get_site_option( 'WPLANG' ) ); ?> 288 </select> 285 <?php 286 $lang = get_site_option( 'WPLANG' ); 287 if ( ! in_array( $lang, $languages ) ) { 288 $lang = ''; 289 } 290 291 wp_dropdown_languages( array( 292 'name' => 'WPLANG', 293 'id' => 'WPLANG', 294 'selected' => $lang, 295 'languages' => $languages, 296 ) ); 297 ?> 289 298 </td> 290 299 </tr> 291 </table>292 <?php293 } // languages294 ?>300 </table> 301 <?php 302 } 303 ?> 295 304 296 305 <h3><?php _e( 'Menu Settings' ); ?></h3> … … 325 334 </table> 326 335 327 <?php 336 <?php 328 337 /** 329 338 * Fires at the end of the Network Settings form, before the submit button.
Note: See TracChangeset
for help on using the changeset viewer.