WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/26/2014 10:26:43 PM (6 years ago)
Author:
ocean90
Message:

Language Form: The language option for $wp_local_package should get the same attributes as the other languages.

see #15677.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/translation-install.php

    r29630 r29633  
    140140        if ( isset( $languages[ $wp_local_package ] ) ) {
    141141            $language = $languages[ $wp_local_package ];
    142             echo '<option value="' . esc_attr( $language['language'] ) . '" lang="' . esc_attr( $language['iso'][1] ) . '">' . esc_html( $language['native_name'] ) . "</option>\n";
     142            printf( '<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
     143                esc_attr( $language['language'] ),
     144                esc_attr( $language['iso'][1] ),
     145                esc_attr( $language['strings']['continue'] ),
     146                in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
     147                esc_html( $language['native_name'] ) );
     148
    143149            unset( $languages[ $wp_local_package ] );
    144150        }
Note: See TracChangeset for help on using the changeset viewer.