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.
Built from https://develop.svn.wordpress.org/trunk@46784


git-svn-id: http://core.svn.wordpress.org/trunk@46584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2019-11-26 15:19:04 +00:00
parent 63fefb540a
commit f4165a697d
2 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ function wp_install_language_form( $languages ) {
'<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n", '<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
esc_attr( $language['language'] ), esc_attr( $language['language'] ),
esc_attr( current( $language['iso'] ) ), 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"' : '', in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
esc_html( $language['native_name'] ) 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", '<option value="%s" lang="%s" data-continue="%s"%s>%s</option>' . "\n",
esc_attr( $language['language'] ), esc_attr( $language['language'] ),
esc_attr( current( $language['iso'] ) ), 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"' : '', in_array( $language['language'], $installed_languages ) ? ' data-installed="1"' : '',
esc_html( $language['native_name'] ) esc_html( $language['native_name'] )
); );

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.4-alpha-46782'; $wp_version = '5.4-alpha-46784';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.