diff --git a/wp-admin/edit-comments.php b/wp-admin/edit-comments.php index e2a5b81716..3aac00ba66 100644 --- a/wp-admin/edit-comments.php +++ b/wp-admin/edit-comments.php @@ -165,6 +165,12 @@ get_current_screen()->set_help_sidebar( '

' . __( 'Support Forums' ) . '

' ); +get_current_screen()->set_screen_reader_content( array( + 'heading_views' => __( 'Filter comments list' ), + 'heading_pagination' => __( 'Comments list navigation' ), + 'heading_list' => __( 'Comments list' ), +) ); + require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> diff --git a/wp-admin/edit-tags.php b/wp-admin/edit-tags.php index 0bf8d3e3bb..748ae176ea 100644 --- a/wp-admin/edit-tags.php +++ b/wp-admin/edit-tags.php @@ -54,6 +54,11 @@ if ( 'post' != $post_type ) { add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) ); +get_current_screen()->set_screen_reader_content( array( + 'heading_pagination' => $tax->labels->pagination, + 'heading_list' => $tax->labels->list, +) ); + $location = false; $referer = wp_get_referer(); diff --git a/wp-admin/edit.php b/wp-admin/edit.php index b24684691d..fa4a7b6179 100644 --- a/wp-admin/edit.php +++ b/wp-admin/edit.php @@ -245,8 +245,15 @@ if ( 'post' == $post_type ) { '

' . __('Documentation on Managing Pages') . '

' . '

' . __('Support Forums') . '

' ); + } +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( diff --git a/wp-admin/includes/class-wp-comments-list-table.php b/wp-admin/includes/class-wp-comments-list-table.php index 92a6c4caed..c3d81a5702 100644 --- a/wp-admin/includes/class-wp-comments-list-table.php +++ b/wp-admin/includes/class-wp-comments-list-table.php @@ -443,6 +443,8 @@ class WP_Comments_List_Table extends WP_List_Table { $this->display_tablenav( 'top' ); + $this->screen->render_screen_reader_content( 'heading_list' ); + ?> diff --git a/wp-admin/includes/class-wp-list-table.php b/wp-admin/includes/class-wp-list-table.php index d8b4f19416..d0430614f7 100644 --- a/wp-admin/includes/class-wp-list-table.php +++ b/wp-admin/includes/class-wp-list-table.php @@ -382,6 +382,8 @@ class WP_List_Table { if ( empty( $views ) ) return; + $this->screen->render_screen_reader_content( 'heading_views' ); + echo "
diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index ea20de1ce5..53110cb459 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -217,6 +217,8 @@ class WP_Media_List_Table extends WP_List_Table { global $mode; $views = $this->get_views(); + + $this->screen->render_screen_reader_content( 'heading_views' ); ?>
diff --git a/wp-admin/includes/class-wp-plugin-install-list-table.php b/wp-admin/includes/class-wp-plugin-install-list-table.php index 1fdc76c5de..d03796b982 100644 --- a/wp-admin/includes/class-wp-plugin-install-list-table.php +++ b/wp-admin/includes/class-wp-plugin-install-list-table.php @@ -258,6 +258,7 @@ class WP_Plugin_Install_List_Table extends WP_List_Table { /** This filter is documented in wp-admin/inclues/class-wp-list-table.php */ $views = apply_filters( "views_{$this->screen->id}", $views ); + $this->screen->render_screen_reader_content( 'heading_views' ); ?>
+

+
@@ -171,6 +173,7 @@ include(ABSPATH . 'wp-admin/admin-header.php');
+

diff --git a/wp-admin/upload.php b/wp-admin/upload.php index 72c11ceced..65bb790dae 100644 --- a/wp-admin/upload.php +++ b/wp-admin/upload.php @@ -204,6 +204,12 @@ get_current_screen()->set_help_sidebar( '

' . __( 'Support Forums' ) . '

' ); +get_current_screen()->set_screen_reader_content( array( + 'heading_views' => __( 'Filter media items list' ), + 'heading_pagination' => __( 'Media items list navigation' ), + 'heading_list' => __( 'Media items list' ), +) ); + require_once( ABSPATH . 'wp-admin/admin-header.php' ); ?> diff --git a/wp-admin/users.php b/wp-admin/users.php index f452446461..7101224ee8 100644 --- a/wp-admin/users.php +++ b/wp-admin/users.php @@ -68,6 +68,12 @@ get_current_screen()->set_help_sidebar( '

' . __('Support Forums') . '

' ); +get_current_screen()->set_screen_reader_content( array( + 'heading_views' => __( 'Filter users list' ), + 'heading_pagination' => __( 'Users list navigation' ), + 'heading_list' => __( 'Users list' ), +) ); + if ( empty($_REQUEST) ) { $referer = ''; } elseif ( isset($_REQUEST['wp_http_referer']) ) { diff --git a/wp-includes/post-functions.php b/wp-includes/post-functions.php index 8233b4c55d..6d5957b6c5 100644 --- a/wp-includes/post-functions.php +++ b/wp-includes/post-functions.php @@ -1322,6 +1322,9 @@ function _post_type_meta_capabilities( $capabilities = null ) { * - remove_featured_image - Default is Remove featured image. * - use_featured_image - Default is Use as featured image. * - menu_name - Default is the same as `name`. + * - views - String for the table views hidden heading. + * - pagination - String for the table pagination hidden heading. + * - list - String for the table hidden heading. * * Above, the first default value is for non-hierarchical post types (like posts) * and the second one is for hierarchical post types (like pages). @@ -1356,6 +1359,9 @@ function get_post_type_labels( $post_type_object ) { 'set_featured_image' => array( __( 'Set featured image' ), __( 'Set featured image' ) ), 'remove_featured_image' => array( __( 'Remove featured image' ), __( 'Remove featured image' ) ), 'use_featured_image' => array( __( 'Use as featured image' ), __( 'Use as featured image' ) ), + 'views' => array( __( 'Filter posts list' ), __( 'Filter pages list' ) ), + 'pagination' => array( __( 'Posts list navigation' ), __( 'Pages list navigation' ) ), + 'list' => array( __( 'Posts list' ), __( 'Pages list' ) ), ); $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; diff --git a/wp-includes/taxonomy-functions.php b/wp-includes/taxonomy-functions.php index e11d4615e1..a13424b5a6 100644 --- a/wp-includes/taxonomy-functions.php +++ b/wp-includes/taxonomy-functions.php @@ -495,6 +495,8 @@ function register_taxonomy( $taxonomy, $object_type, $args = array() ) { * - choose_from_most_used - This string isn't used on hierarchical taxonomies. Default is "Choose from the most used tags", used in the meta box. * - not_found - Default is "No tags found"/"No categories found", used in the meta box and taxonomy list table. * - no_terms - Default is "No tags"/"No categories", used in the posts and media list tables. + * - pagination - String for the table pagination hidden heading. + * - list - String for the table hidden heading. * * Above, the first default value is for non-hierarchical taxonomies (like tags) and the second one is for hierarchical taxonomies (like categories). * @@ -534,6 +536,8 @@ function get_taxonomy_labels( $tax ) { 'choose_from_most_used' => array( __( 'Choose from the most used tags' ), null ), 'not_found' => array( __( 'No tags found.' ), __( 'No categories found.' ) ), 'no_terms' => array( __( 'No tags' ), __( 'No categories' ) ), + 'pagination' => array( __( 'Tags list navigation' ), __( 'Categories list navigation' ) ), + 'list' => array( __( 'Tags list' ), __( 'Categories list' ) ), ); $nohier_vs_hier_defaults['menu_name'] = $nohier_vs_hier_defaults['name']; diff --git a/wp-includes/version.php b/wp-includes/version.php index 418253505b..a476d1f2a7 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34890'; +$wp_version = '4.4-alpha-34891'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.