Make WordPress Core

Changeset 15382


Ignore:
Timestamp:
07/10/2010 07:36:52 AM (14 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

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

    r15228 r15382  
    655655            $flag = true;
    656656            $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>';
    658658        } elseif ( $code_lang == 'en_GB' ) { // British English
    659659            $flag = true;
    660660            $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>';
    662662        } else {
    663663            $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>';
    665665        }
    666666
     
    668668
    669669    if ( $flag === false ) // WordPress english
    670         $output[] = '<option value=""' . selected( $current, '' ) . '>' . __( 'English' ) . "</option>";
     670        $output[] = '<option value=""' . selected( $current, '', false ) . '>' . __( 'English' ) . "</option>";
    671671
    672672    // Order by name
Note: See TracChangeset for help on using the changeset viewer.