WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/07/2015 01:27:01 AM (4 years ago)
Author:
wonderboymusic
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r34359 r34891  
    5454
    5555add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $tax->name . '_per_page' ) );
     56
     57get_current_screen()->set_screen_reader_content( array(
     58    'heading_pagination' => $tax->labels->pagination,
     59    'heading_list'       => $tax->labels->list,
     60) );
    5661
    5762$location = false;
Note: See TracChangeset for help on using the changeset viewer.