From bbd663415cd2b3c26aa9ecfeb426596cc9073624 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 14 Jun 2016 22:09:28 +0000 Subject: [PATCH] Text Changes: Simplify two strings in `wp_password_change_notification()`. Add translator comments. Props ramiy. See #35736. Built from https://develop.svn.wordpress.org/trunk@37704 git-svn-id: http://core.svn.wordpress.org/trunk@37670 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 23601501a6..d590b449e0 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1671,11 +1671,13 @@ function wp_password_change_notification( $user ) { // send a copy of password change notification to the admin // but check to see if it's the admin whose password we're changing, and skip this if ( 0 !== strcasecmp( $user->user_email, get_option( 'admin_email' ) ) ) { - $message = sprintf(__('Password Lost and Changed for user: %s'), $user->user_login) . "\r\n"; + /* translators: %s: user name */ + $message = sprintf( __( 'Password changed for user: %s' ), $user->user_login ) . "\r\n"; // The blogname option is escaped with esc_html on the way into the database in sanitize_option // we want to reverse this for the plain text arena of emails. $blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES); - wp_mail(get_option('admin_email'), sprintf(__('[%s] Password Lost/Changed'), $blogname), $message); + /* translators: %s: site title */ + wp_mail( get_option( 'admin_email' ), sprintf( __( '[%s] Password Changed' ), $blogname ), $message ); } } endif; diff --git a/wp-includes/version.php b/wp-includes/version.php index 22b597fecd..60d884e12d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37703'; +$wp_version = '4.6-alpha-37704'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.