WordPress.org

Make WordPress Core

Changeset 15381


Ignore:
Timestamp:
07/10/2010 07:25:10 AM (8 years ago)
Author:
westi
Message:

Ensure the language selection dropdown is output correctly. Fixes #14255 for trunk props SergeyBiryukov.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r15315 r15381  
    654654            $flag = true;
    655655            $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>';
    657657        } elseif ( $code_lang == 'en_GB' ) { // British English
    658658            $flag = true;
    659659            $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>';
    661661        } else {
    662662            $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>';
    664664        }
    665665
     
    667667
    668668    if ( $flag === false ) // WordPress english
    669         $output[] = '<option value=""' . selected( $current, '' ) . '>' . __( 'English' ) . "</option>";
     669        $output[] = '<option value=""' . selected( $current, '', false ) . '>' . __( 'English' ) . "</option>";
    670670
    671671    // Order by name
Note: See TracChangeset for help on using the changeset viewer.