a11y: add `role=alert` to woocommerce error msgs

See #18074
This commit is contained in:
Rami Yushuvaev 2017-12-11 16:40:25 +02:00 committed by GitHub
parent dd59a9c51c
commit 255c3211ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ if ( ! $messages ) {
}
?>
<ul class="woocommerce-error">
<ul class="woocommerce-error" role="alert">
<?php foreach ( $messages as $message ) : ?>
<li><?php echo wp_kses_post( $message ); ?></li>
<?php endforeach; ?>