Upgrade/Install: Provide a default label for "Continue" button in language selection form.
Prevents an empty continue button if a translation isn't yet available. Props sathyapulse. Fixes #48776. git-svn-id: https://develop.svn.wordpress.org/trunk@46784 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
29f0d74599
commit
c2413a4711
@ -173,7 +173,7 @@ function wp_install_language_form( $languages ) {
|
||||
'<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
|
||||
esc_attr( $language['language'] ),
|
||||
esc_attr( current( $language['iso'] ) ),
|
||||
esc_attr( $language['strings']['continue'] ),
|
||||
esc_attr( $language['strings']['continue'] ?: 'Continue' ),
|
||||
in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
|
||||
esc_html( $language['native_name'] )
|
||||
);
|
||||
@ -187,7 +187,7 @@ function wp_install_language_form( $languages ) {
|
||||
'<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
|
||||
esc_attr( $language['language'] ),
|
||||
esc_attr( current( $language['iso'] ) ),
|
||||
esc_attr( $language['strings']['continue'] ),
|
||||
esc_attr( $language['strings']['continue'] ?: 'Continue' ),
|
||||
in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
|
||||
esc_html( $language['native_name'] )
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user