Change esc_html to wp_kses and fix class name
This commit is contained in:
parent
15e6b14b58
commit
9a51b63174
|
@ -104,7 +104,7 @@ class WC_Widget_Login extends WP_Widget {
|
|||
global $login_errors;
|
||||
|
||||
if ( is_wp_error($login_errors) && $login_errors->get_error_code() ) foreach ($login_errors->get_error_messages() as $error) :
|
||||
echo '<div class="woocommerce-error">' . esc_html( $error ) . "</div>\n";
|
||||
echo '<div class="woocommerce_error">' . wp_kses_post( $error ) . "</div>\n";
|
||||
break;
|
||||
endforeach;
|
||||
|
||||
|
|
|
@ -101,7 +101,7 @@ function woocommerce_sidebar_login_ajax_process() {
|
|||
|
||||
if ( $user->errors ) {
|
||||
foreach ( $user->errors as $error ) {
|
||||
$result['error'] = esc_html( $error[0] );
|
||||
$result['error'] = wp_kses_post( $error[0] );
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue