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/includes/class-wp-plugin-install-list-table.php

    r34760 r34891  
    259259        $views = apply_filters( "views_{$this->screen->id}", $views );
    260260
     261        $this->screen->render_screen_reader_content( 'heading_views' );
    261262?>
    262263<div class="wp-filter">
     
    293294?>
    294295<div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
    295 
     296<?php
     297    $this->screen->render_screen_reader_content( 'heading_list' );
     298?>
    296299    <div id="the-list"<?php echo $data_attr; ?>>
    297300        <?php $this->display_rows_or_placeholder(); ?>
Note: See TracChangeset for help on using the changeset viewer.