Merge pull request #18096 from ramiy/patch-2

a11y: add `role=alert` to woocommerce error msgs
This commit is contained in:
Mike Jolley 2017-12-12 13:10:19 +00:00 committed by GitHub
commit e6b4b36e7d
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; ?>