1 | From 9955a1508fcf5fca2776271758e140e166188474 Mon Sep 17 00:00:00 2001 |
---|
2 | From: Chris Wilcoxson <chris@slushman.com> |
---|
3 | Date: Mon, 7 Dec 2015 09:08:25 -0600 |
---|
4 | Subject: [PATCH] Added screen reader text to Admin Bar Comments links. |
---|
5 | |
---|
6 | --- |
---|
7 | wp-includes/admin-bar.php | 3 ++- |
---|
8 | 1 file changed, 2 insertions(+), 1 deletion(-) |
---|
9 | |
---|
10 | diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php |
---|
11 | index 2bf56a8..acd5a95 100644 |
---|
12 | --- a/wp-includes/admin-bar.php |
---|
13 | +++ b/wp-includes/admin-bar.php |
---|
14 | @@ -696,10 +696,11 @@ function wp_admin_bar_comments_menu( $wp_admin_bar ) { |
---|
15 | |
---|
16 | $icon = '<span class="ab-icon"></span>'; |
---|
17 | $title = '<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-' . $awaiting_mod . '" aria-hidden="true">' . number_format_i18n( $awaiting_mod ) . '</span>'; |
---|
18 | + $title .= '<span class="screen-reader-text">' . $awaiting_title . '</span>'; |
---|
19 | |
---|
20 | $wp_admin_bar->add_menu( array( |
---|
21 | 'id' => 'comments', |
---|
22 | 'title' => $icon . $title, |
---|
23 | 'href' => admin_url('edit-comments.php'), |
---|
24 | - 'meta' => array( 'title' => $awaiting_title ), |
---|
25 | ) ); |
---|