diff --git a/templates/myaccount/dashboard.php b/templates/myaccount/dashboard.php index 32845b2e8e2..771a8a4d493 100644 --- a/templates/myaccount/dashboard.php +++ b/templates/myaccount/dashboard.php @@ -26,7 +26,7 @@ if ( ! defined( 'ABSPATH' ) ) { Log out)', 'woocommerce' ), + esc_html__( 'Hello %1$s (not %1$s? Log out)', 'woocommerce' ), '' . esc_html( $current_user->display_name ) . '', esc_url( wc_logout_url() ) ); @@ -35,12 +35,14 @@ if ( ! defined( 'ABSPATH' ) ) {

recent orders, manage your billing address, and edit your password and account details.', 'woocommerce' ); if ( wc_shipping_enabled() ) { + /* translators: 1: Orders URL 2: Addresses URL 3: Account URL. */ $dashboard_desc = __( 'From your account dashboard you can view your recent orders, manage your shipping and billing addresses, and edit your password and account details.', 'woocommerce' ); } printf( - $dashboard_desc, + esc_html( $dashboard_desc ), esc_url( wc_get_endpoint_url( 'orders' ) ), esc_url( wc_get_endpoint_url( 'edit-address' ) ), esc_url( wc_get_endpoint_url( 'edit-account' ) )