Changeset 30495
- Timestamp:
- 11/21/2014 03:19:53 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r30380 r30495 906 906 } 907 907 908 $translations_available = ( ! empty( $translations ) && $args['show_available_translations'] ); 909 908 910 printf( '<select name="%s" id="%s">', esc_attr( $args['name'] ), esc_attr( $args['id'] ) ); 909 911 … … 912 914 913 915 // List installed languages. 914 if ( $ args['show_available_translations']) {916 if ( $translations_available ) { 915 917 $structure[] = '<optgroup label="' . esc_attr_x( 'Installed', 'translations' ) . '">'; 916 918 } … … 925 927 ); 926 928 } 927 if ( $ args['show_available_translations']) {929 if ( $translations_available ) { 928 930 $structure[] = '</optgroup>'; 929 931 } 930 932 931 933 // List available translations. 932 if ( ! empty( $translations ) && $args['show_available_translations']) {934 if ( $translations_available ) { 933 935 $structure[] = '<optgroup label="' . esc_attr_x( 'Available', 'translations' ) . '">'; 934 936 foreach ( $translations as $translation ) {
Note: See TracChangeset
for help on using the changeset viewer.