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