From f8677253e47485da7baa06183ccfaec75b28f89e Mon Sep 17 00:00:00 2001 From: desrosj Date: Mon, 10 Jun 2019 13:34:45 +0000 Subject: [PATCH] I18N: Combine similar strings with minor differences. Merges [45298] to the 5.2 branch. Props dimadin. Fixes #47158. Built from https://develop.svn.wordpress.org/branches/5.2@45510 git-svn-id: http://core.svn.wordpress.org/branches/5.2@45321 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/dashboard.php | 2 +- wp-admin/includes/file.php | 4 ++-- wp-admin/includes/theme.php | 9 +++++++-- wp-includes/version.php | 2 +- wp-login.php | 2 +- 5 files changed, 12 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index e3160bb390..ad02909c74 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1628,7 +1628,7 @@ function wp_dashboard_php_nag() {

-

+

' . esc_html( $filename_for_errors ) . '' ), array( diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 5283cea8bc..f1d0d374bd 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -723,8 +723,13 @@ function customize_themes_print_templates() { {{{ data.stars }}} link to view ratings opens in a new tab' ), '{{ data.num_ratings }}' ); + printf( + '%1$s %2$s', + /* translators: %s: number of ratings */ + sprintf( __( '(%s ratings)' ), '{{ data.num_ratings }}' ), + /* translators: accessibility text */ + __( '(opens in a new tab)' ) + ); ?> diff --git a/wp-includes/version.php b/wp-includes/version.php index 0368129882..dfd9638957 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2.2-alpha-45509'; +$wp_version = '5.2.2-alpha-45510'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index d9b2554783..5ecf5f0dbf 100644 --- a/wp-login.php +++ b/wp-login.php @@ -426,7 +426,7 @@ function retrieve_password() { $message = apply_filters( 'retrieve_password_message', $message, $key, $user_login, $user_data ); if ( $message && ! wp_mail( $user_email, wp_specialchars_decode( $title ), $message ) ) { - wp_die( __( 'The email could not be sent.' ) . "
\n" . __( 'Possible reason: your host may have disabled the mail() function.' ) ); + wp_die( __( 'The email could not be sent. Possible reason: your host may have disabled the mail() function.' ) ); } return true;