Text Changes: Simplify two strings in wp_password_change_notification()
.
Add translator comments. Props ramiy. See #35736. git-svn-id: https://develop.svn.wordpress.org/trunk@37704 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
45d7737eb2
commit
62733745df
@ -1671,11 +1671,13 @@ function wp_password_change_notification( $user ) {
|
|||||||
// send a copy of password change notification to the admin
|
// 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
|
// 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' ) ) ) {
|
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
|
// 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.
|
// we want to reverse this for the plain text arena of emails.
|
||||||
$blogname = wp_specialchars_decode(get_option('blogname'), ENT_QUOTES);
|
$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;
|
endif;
|
||||||
|
Loading…
Reference in New Issue
Block a user