Changeset 15381
- Timestamp:
- 07/10/2010 07:25:10 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r15315 r15381 654 654 $flag = true; 655 655 $ae = __( 'American English' ); 656 $output[$ae] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang ) . '> ' . $ae . '</option>';656 $output[$ae] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . $ae . '</option>'; 657 657 } elseif ( $code_lang == 'en_GB' ) { // British English 658 658 $flag = true; 659 659 $be = __( 'British English' ); 660 $output[$be] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang ) . '> ' . $be . '</option>';660 $output[$be] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . $be . '</option>'; 661 661 } else { 662 662 $translated = format_code_lang( $code_lang ); 663 $output[$translated] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang ) . '> ' . esc_html ( $translated ) . '</option>';663 $output[$translated] = '<option value="' . esc_attr( $code_lang ) . '"' . selected( $current, $code_lang, false ) . '> ' . esc_html ( $translated ) . '</option>'; 664 664 } 665 665 … … 667 667 668 668 if ( $flag === false ) // WordPress english 669 $output[] = '<option value=""' . selected( $current, '' ) . '>' . __( 'English' ) . "</option>";669 $output[] = '<option value=""' . selected( $current, '', false ) . '>' . __( 'English' ) . "</option>"; 670 670 671 671 // Order by name
Note: See TracChangeset
for help on using the changeset viewer.