From e10f419b3cc726537855510d4e4fd28cf674c32c Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 8 Mar 2019 15:24:22 +0000 Subject: [PATCH] Privacy: Add missing header text for screen readers to privacy list tables. In [34891], `WP_Screen` was updated with methods to store, retrieve, and render screen reader text used by screens with `WP_List_Table` instances. When the export/erase personal data list tables were introduced in [42967], these headings were missing. Fixes #46041. Props afercia, xkon, garrett-eclipse, desrosj. git-svn-id: https://develop.svn.wordpress.org/trunk@44821 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/user.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php index 356a7c68fc..82d792fb3c 100644 --- a/src/wp-admin/includes/user.php +++ b/src/wp-admin/includes/user.php @@ -812,6 +812,15 @@ function _wp_personal_data_export_page() { 'screen' => 'export_personal_data', ) ); + + $requests_table->screen->set_screen_reader_content( + array( + 'heading_views' => __( 'Filter export personal data list' ), + 'heading_pagination' => __( 'Export personal data list navigation' ), + 'heading_list' => __( 'Export personal data list' ), + ) + ); + $requests_table->process_bulk_action(); $requests_table->prepare_items(); ?> @@ -887,6 +896,14 @@ function _wp_personal_data_removal_page() { ) ); + $requests_table->screen->set_screen_reader_content( + array( + 'heading_views' => __( 'Filter erase personal data list' ), + 'heading_pagination' => __( 'Erase personal data list navigation' ), + 'heading_list' => __( 'Erase personal data list' ), + ) + ); + $requests_table->process_bulk_action(); $requests_table->prepare_items();