Skip to:
Content

BuddyPress.org

Ticket #6742: 6742.3.patch

File 6742.3.patch, 1.8 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 heading and text for Groups screen pagination.
     178                if ( bp_get_major_wp_version() >= 4.4 ) {
     179                        get_current_screen()->set_screen_reader_content( array(
     180                                'heading_pagination' => __( 'Groups list navigation', 'buddypress' ),
     181                        ) );
     182                }
    176183        }
    177184
    178185        $bp = buddypress();
     
    13221329        public function display() {
    13231330                $this->display_tablenav( 'top' ); ?>
    13241331
     1332                <h2 class="screen-reader-text"><?php _e( 'Groups list', 'buddypress' ); ?></h2>
     1333
    13251334                <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
    13261335                        <thead>
    13271336                                <tr>
     
    13881397        public function get_views() {
    13891398                $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?>
    13901399
     1400                <h2 class="screen-reader-text"><?php _e( 'Filter groups list', 'buddypress' ); ?></h2>
     1401
    13911402                <ul class="subsubsub">
    13921403                        <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>
    13931404                        <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>