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/network/site-themes.php

    r33921 r34891  
    3333    '<p>' . __('<a href="https://wordpress.org/support/forum/multisite/" target="_blank">Support Forums</a>') . '</p>'
    3434);
     35
     36get_current_screen()->set_screen_reader_content( array(
     37    'heading_views'      => __( 'Filter site themes list' ),
     38    'heading_pagination' => __( 'Site themes list navigation' ),
     39    'heading_list'       => __( 'Site themes list' ),
     40) );
    3541
    3642$wp_list_table = _get_list_table('WP_MS_Themes_List_Table');
Note: See TracChangeset for help on using the changeset viewer.