Update customer reset password email copy

This commit is contained in:
Gerhard Potgieter 2018-09-06 14:18:09 +02:00
parent 68b5fbe279
commit cf03db7392
3 changed files with 34 additions and 30 deletions

View File

@ -17,7 +17,7 @@ if ( ! class_exists( 'WC_Email_Customer_Reset_Password', false ) ) :
* An email sent to the customer when they reset their password.
*
* @class WC_Email_Customer_Reset_Password
* @version 2.3.0
* @version 3.5.0
* @package WooCommerce/Classes/Emails
* @extends WC_Email
*/
@ -79,7 +79,7 @@ if ( ! class_exists( 'WC_Email_Customer_Reset_Password', false ) ) :
* @return string
*/
public function get_default_subject() {
return __( 'Password reset for {site_title}', 'woocommerce' );
return __( 'Password Reset Request for {site_title}', 'woocommerce' );
}
/**
@ -89,7 +89,7 @@ if ( ! class_exists( 'WC_Email_Customer_Reset_Password', false ) ) :
* @return string
*/
public function get_default_heading() {
return __( 'Password reset instructions', 'woocommerce' );
return __( 'Password Reset Request', 'woocommerce' );
}
/**
@ -120,7 +120,6 @@ if ( ! class_exists( 'WC_Email_Customer_Reset_Password', false ) ) :
/**
* Get content html.
*
* @access public
* @return string
*/
public function get_content_html() {
@ -141,7 +140,6 @@ if ( ! class_exists( 'WC_Email_Customer_Reset_Password', false ) ) :
/**
* Get content plain.
*
* @access public
* @return string
*/
public function get_content_plain() {

View File

@ -10,28 +10,32 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 2.0.0
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Emails
* @version 3.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
exit; // Exit if accessed directly.
}
?>
<?php do_action( 'woocommerce_email_header', $email_heading, $email ); ?>
<p><?php _e( 'Someone requested that the password be reset for the following account:', 'woocommerce' ); ?></p>
<p><?php printf( __( 'Username: %s', 'woocommerce' ), $user_login ); ?></p>
<p><?php _e( 'If this was a mistake, just ignore this email and nothing will happen.', 'woocommerce' ); ?></p>
<p><?php _e( 'To reset your password, visit the following address:', 'woocommerce' ); ?></p>
<?php /* translators: %s Customer first name */ ?>
<p><?php esc_html_e( 'Hi %s,', 'woocommerce' ); ?>
<p><?php esc_html_e( 'Someone (hopefully you) has requested a password reset for the following account on:', 'woocommerce' ); ?></p>
<?php /* translators: %s Store name */ ?>
<p><?php printf( esc_html__( 'Store: %s', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ); ?></p><?php // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
<?php /* translators: %s Customer username */ ?>
<p><?php printf( esc_html__( 'Username: %s', 'woocommerce' ), $user_login ); ?></p><?php // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped ?>
<p><?php esc_html_e( 'If this was a mistake, just ignore this email and nothing will happen. Otherwise, follow this link to reset your password now:', 'woocommerce' ); ?></p>
<p>
<a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ); ?>">
<?php _e( 'Click here to reset your password', 'woocommerce' ); ?></a>
<a class="link" href="<?php echo esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ); ?>"><?php // phpcs:ignore ?>
<?php esc_html_e( 'Click here to reset your password', 'woocommerce' ); ?>
</a>
</p>
<p></p>
<p><?php esc_html_e( 'Good luck!', 'woocommerce' ); ?></p>
<?php do_action( 'woocommerce_email_footer', $email ); ?>

View File

@ -10,26 +10,28 @@
* happen. When this occurs the version of the template file will be bumped and
* the readme will list any important changes.
*
* @see https://docs.woocommerce.com/document/template-structure/
* @author WooThemes
* @see https://docs.woocommerce.com/document/template-structure/
* @package WooCommerce/Templates/Emails/Plain
* @version 2.3.0
* @version 3.5.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
exit; // Exit if accessed directly.
}
echo "= " . $email_heading . " =\n\n";
echo '= ' . esc_html( $email_heading ) . " =\n\n";
echo __( 'Someone requested that the password be reset for the following account:', 'woocommerce' ) . "\r\n\r\n";
echo esc_url( network_home_url( '/' ) ) . "\r\n\r\n";
echo sprintf( __( 'Username: %s', 'woocommerce' ), $user_login ) . "\r\n\r\n";
echo __( 'If this was a mistake, just ignore this email and nothing will happen.', 'woocommerce' ) . "\r\n\r\n";
echo __( 'To reset your password, visit the following address:', 'woocommerce' ) . "\r\n\r\n";
echo esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ) . "\r\n";
/* translators: %s Customer first name */
echo esc_html__( 'Hi %s,', 'woocommerce' ) . "\n\n";
echo esc_html__( 'Someone (hopefully you) has requested a password reset for the following account on:', 'woocommerce' ) . "\n\n";
/* translators: %s Store name */
printf( esc_html__( 'Store: %s', 'woocommerce' ), wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ) ) . "\n\n";// phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
/* translators: %s Customer username */
printf( esc_html__( 'Username: %s', 'woocommerce' ), $user_login ); // phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped
echo esc_html__( 'If this was a mistake, just ignore this email and nothing will happen. Otherwise, follow this link to reset your password now:', 'woocommerce' ) . "\n\n";
echo esc_url( add_query_arg( array( 'key' => $reset_key, 'id' => $user_id ), wc_get_endpoint_url( 'lost-password', '', wc_get_page_permalink( 'myaccount' ) ) ) ) . "\n\n"; // phpcs:ignore
echo esc_html__( 'Good luck!', 'woocommerce' ) . "\n\n";
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\n\n";
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );
echo apply_filters( 'woocommerce_email_footer_text', get_option( 'woocommerce_email_footer_text' ) );// phpcs:ignore WordPress.XSS.EscapeOutput.OutputNotEscaped