Improve non-visual feedback for list table items without terms.

Props karpstrucking, afercia.
Fixes #32150.



git-svn-id: https://develop.svn.wordpress.org/trunk@32725 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Konstantin Obenland 2015-06-11 09:27:13 +00:00
parent c2ed5b170d
commit 995753d1d0
2 changed files with 2 additions and 2 deletions

View File

@ -496,7 +496,7 @@ foreach ( $columns as $column_name => $column_display_name ) {
/* translators: used between list items, there is a space after the comma */
echo join( __( ', ' ), $out );
} else {
echo '—';
echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->not_found . '</span>';
}
break;

View File

@ -907,7 +907,7 @@ class WP_Posts_List_Table extends WP_List_Table {
/* translators: used between list items, there is a space after the comma */
echo join( __( ', ' ), $out );
} else {
echo '&#8212;';
echo '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' . $taxonomy_object->labels->not_found . '</span>';
}
break;
}