Skip to:
Content

BuddyPress.org

Ticket #6742: 6742.patch

File 6742.patch, 2.0 KB (added by mercime, 8 years ago)
  • src/bp-groups/bp-groups-admin.php

     
    173173                        '<p><strong>' . __( 'For more information:', 'buddypress' ) . '</strong></p>' .
    174174                        '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>'
    175175                );
     176
     177                // Add accessible hidden headings and text for Groups screen.
     178                get_current_screen()->set_screen_reader_content( array(
     179                        'heading_views'      => __( 'Filter groups list', 'buddypress' ),
     180                        'heading_pagination' => __( 'Groups list navigation', 'buddypress' ),
     181                        'heading_list'       => __( 'Groups list', 'buddypress' ),
     182                ) );
    176183        }
    177184
    178185        $bp = buddypress();
     
    13221329         * @since 1.7.0
    13231330         */
    13241331        public function display() {
    1325                 $this->display_tablenav( 'top' ); ?>
     1332                $this->display_tablenav( 'top' );
    13261333
     1334                $this->screen->render_screen_reader_content( 'heading_list' ); ?>
     1335
    13271336                <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
    13281337                        <thead>
    13291338                                <tr>
     
    13881397         * @since 1.7.0
    13891398         */
    13901399        public function get_views() {
    1391                 $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?>
     1400                $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' );
    13921401
     1402                $this->screen->render_screen_reader_content( 'heading_views' ); ?>
     1403
    13931404                <ul class="subsubsub">
    13941405                        <li class="all"><a href="<?php echo esc_url( $url_base ); ?>" class="<?php if ( 'all' == $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li>
    13951406                        <li class="public"><a href="<?php echo esc_url( add_query_arg( 'group_status', 'public', $url_base ) ); ?>" class="<?php if ( 'public' == $this->view ) echo 'current'; ?>"><?php printf( _n( 'Public <span class="count">(%s)</span>', 'Public <span class="count">(%s)</span>', $this->group_counts['public'], 'buddypress' ), number_format_i18n( $this->group_counts['public'] ) ); ?></a> |</li>