Make WordPress Core


Ignore:
Timestamp:
10/07/2015 01:27:01 AM (9 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.php

    r34177 r34891  
    246246    '<p>' . __('<a href="https://wordpress.org/support/" target="_blank">Support Forums</a>') . '</p>'
    247247    );
    248 }
     248
     249}
     250
     251get_current_screen()->set_screen_reader_content( array(
     252    'heading_views'      => $post_type_object->labels->views,
     253    'heading_pagination' => $post_type_object->labels->pagination,
     254    'heading_list'       => $post_type_object->labels->list,
     255) );
    249256
    250257add_screen_option( 'per_page', array( 'default' => 20, 'option' => 'edit_' . $post_type . '_per_page' ) );
Note: See TracChangeset for help on using the changeset viewer.