Preserve anchors when escaping text.
Signed-off-by: Leon Francis Shelhamer <leon@211j.com>
This commit is contained in:
parent
a82dc05e1c
commit
80d6b94b42
|
@ -24,9 +24,14 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
|
||||
<p>
|
||||
<?php
|
||||
$allowed_html = array(
|
||||
'a' => array(
|
||||
'href' => array(),
|
||||
),
|
||||
);
|
||||
printf(
|
||||
/* translators: 1: user display name 2: logout url */
|
||||
esc_html__( 'Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)', 'woocommerce' ),
|
||||
wp_kses( __( 'Hello %1$s (not %1$s? <a href="%2$s">Log out</a>)', 'woocommerce' ), $allowed_html ),
|
||||
'<strong>' . esc_html( $current_user->display_name ) . '</strong>',
|
||||
esc_url( wc_logout_url() )
|
||||
);
|
||||
|
@ -42,7 +47,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|||
$dashboard_desc = __( 'From your account dashboard you can view your <a href="%1$s">recent orders</a>, manage your <a href="%2$s">shipping and billing addresses</a>, and <a href="%3$s">edit your password and account details</a>.', 'woocommerce' );
|
||||
}
|
||||
printf(
|
||||
esc_html( $dashboard_desc ),
|
||||
wp_kses( $dashboard_desc, $allowed_html ),
|
||||
esc_url( wc_get_endpoint_url( 'orders' ) ),
|
||||
esc_url( wc_get_endpoint_url( 'edit-address' ) ),
|
||||
esc_url( wc_get_endpoint_url( 'edit-account' ) )
|
||||
|
|
Loading…
Reference in New Issue