WordPress.org

Make WordPress Core

Changeset 44821


Ignore:
Timestamp:
03/08/2019 03:24:22 PM (3 years ago)
Author:
desrosj
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/user.php

    r44809 r44821  
    813813        )
    814814    );
     815
     816    $requests_table->screen->set_screen_reader_content(
     817        array(
     818            'heading_views'      => __( 'Filter export personal data list' ),
     819            'heading_pagination' => __( 'Export personal data list navigation' ),
     820            'heading_list'       => __( 'Export personal data list' ),
     821        )
     822    );
     823
    815824    $requests_table->process_bulk_action();
    816825    $requests_table->prepare_items();
     
    885894            'singular' => 'privacy_request',
    886895            'screen'   => 'remove_personal_data',
     896        )
     897    );
     898
     899    $requests_table->screen->set_screen_reader_content(
     900        array(
     901            'heading_views'      => __( 'Filter erase personal data list' ),
     902            'heading_pagination' => __( 'Erase personal data list navigation' ),
     903            'heading_list'       => __( 'Erase personal data list' ),
    887904        )
    888905    );
Note: See TracChangeset for help on using the changeset viewer.