Lists View Switcher: Replace blank image with screen reader text.

props davidakennedy.
fixes #28871.
Built from https://develop.svn.wordpress.org/trunk@29133


git-svn-id: http://core.svn.wordpress.org/trunk@28918 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling
2014-07-13 11:05:15 +00:00
parent e8369f9d25
commit 6ef23ea006
7 changed files with 6 additions and 19 deletions

View File

@@ -500,11 +500,9 @@ class WP_List_Table {
if ( $current_mode == $mode )
$classes[] = 'current';
printf(
"<a href='%s' class='%s'><img id='view-switch-$mode' src='%s' width='20' height='20' title='%s' alt='%s' /></a>\n",
"<a href='%s' class='%s' id='view-switch-$mode'><span class='screen-reader-text'>%s</span></a>\n",
esc_url( add_query_arg( 'mode', $mode ) ),
implode( ' ', $classes ),
esc_url( includes_url( 'images/blank.gif' ) ),
$title,
$title
);
}