Merge pull request #18074 from ramiy/patch-1

a11y: add `role=alert` to woocommerce message div
This commit is contained in:
Mike Jolley 2017-12-12 13:10:10 +00:00 committed by GitHub
commit 466cb3e1cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -27,5 +27,5 @@ if ( ! $messages ) {
?>
<?php foreach ( $messages as $message ) : ?>
<div class="woocommerce-message"><?php echo wp_kses_post( $message ); ?></div>
<div class="woocommerce-message" role="alert"><?php echo wp_kses_post( $message ); ?></div>
<?php endforeach; ?>