Changeset 29630 for trunk/src/wp-admin/options-general.php
- Timestamp:
- 08/26/2014 07:58:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options-general.php
r29514 r29630 303 303 </tr> 304 304 <?php do_settings_fields('general', 'default'); ?> 305 <?php 306 $languages = get_available_languages(); 307 if ( $languages ) : 308 ?> 305 306 <?php 307 $languages = get_available_languages(); 308 if ( ! empty( $languages ) ) { 309 ?> 309 310 <tr> 310 <th width="33%" scope="row"><label for="WPLANG"><?php _e( 'Site Language')?></label></th>311 <th width="33%" scope="row"><label for="WPLANG"><?php _e( 'Site Language' ); ?></label></th> 311 312 <td> 312 <?php wp_dropdown_languages( array( 313 <?php 314 $locale = get_locale(); 315 if ( ! in_array( $locale, $languages ) ) { 316 $locale = ''; 317 } 318 319 wp_dropdown_languages( array( 313 320 'name' => 'WPLANG', 314 321 'id' => 'WPLANG', 315 'selected' => get_option( 'WPLANG' ),322 'selected' => $locale, 316 323 'languages' => $languages, 317 ) ); ?> 324 ) ); 325 326 // Add note about deprecated WPLANG constant. 327 if ( defined( 'WPLANG' ) && ( '' !== WPLANG ) && $locale !== WPLANG ) { 328 if ( is_super_admin() ) { 329 ?> 330 <p class="description"> 331 <strong><?php _e( 'Note:' ); ?></strong> <?php printf( __( 'The %s constant in your %s file is no longer needed.' ), '<code>WPLANG</code>', '<code>wp-config.php</code>' ); ?> 332 </p> 333 <?php 334 } 335 _deprecated_argument( 'define()', '4.0', sprintf( __( 'The %s constant in your %s file is no longer needed.' ), 'WPLANG', 'wp-config.php' ) ); 336 } 337 ?> 318 338 </td> 319 339 </tr> 320 <?php321 endif; 340 <?php 341 } 322 342 ?> 323 343 </table>
Note: See TracChangeset
for help on using the changeset viewer.