mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
Accessibility: Audit usage of abbreviations.
Title attributes on abbreviations are only available to a minority of users. The best option is to avoid unnecessary abbreviations when possible. In the other cases, use an `<abbr>` element (which provides a hint to user agents on how to announce and display the abbreviation) and provide an expansion in plain text on first use. - `readme.html`: improves abbreviations and removes unnecessary `title` attributes - options-general: removes unnecessary abbreviations and improves the remaining ones - customizer schedule changeset date: removes unnecessary abbreviations and improves the remaining ones - posts table date: uses a `span` element instead of an `abbr` element because this is not an abbreviation Fixes #46980. git-svn-id: https://develop.svn.wordpress.org/trunk@45930 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1127,7 +1127,7 @@ class WP_Posts_List_Table extends WP_List_Table {
|
||||
} else {
|
||||
|
||||
/** This filter is documented in wp-admin/includes/class-wp-posts-list-table.php */
|
||||
echo '<abbr title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . '</abbr>';
|
||||
echo '<span title="' . $t_time . '">' . apply_filters( 'post_date_column_time', $h_time, $post, 'date', $mode ) . '</span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user