mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
List Tables/WP_Screen: in WP_Screen, add methods to store, retrieve, and render screen reader text, primarily used by list table screens.
These additions are based on an audit and recommendations by the Accessibility team. #a11y'all Props afercia. Fixes #32147. git-svn-id: https://develop.svn.wordpress.org/trunk@34891 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -245,8 +245,15 @@ if ( 'post' == $post_type ) {
|
||||
'<p>' . __('<a href="https://codex.wordpress.org/Pages_Screen" target="_blank">Documentation on Managing Pages</a>') . '</p>' .
|
||||
'<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
get_current_screen()->set_screen_reader_content( array(
|
||||
'heading_views' => $post_type_object->labels->views,
|
||||
'heading_pagination' => $post_type_object->labels->pagination,
|
||||
'heading_list' => $post_type_object->labels->list,
|
||||
) );
|
||||
|
||||
add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) );
|
||||
|
||||
$bulk_counts = array(
|
||||
|
||||
Reference in New Issue
Block a user