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:
parent
c2ed5b170d
commit
995753d1d0
@ -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">—</span><span class="screen-reader-text">' . get_taxonomy( $taxonomy )->labels->not_found . '</span>';
|
||||
}
|
||||
|
||||
break;
|
||||
|
@ -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 '—';
|
||||
echo '<span aria-hidden="true">—</span><span class="screen-reader-text">' . $taxonomy_object->labels->not_found . '</span>';
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user