Ticket #6742: 6742.patch
File 6742.patch, 2.0 KB (added by , 8 years ago) |
---|
-
src/bp-groups/bp-groups-admin.php
173 173 '<p><strong>' . __( 'For more information:', 'buddypress' ) . '</strong></p>' . 174 174 '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>' 175 175 ); 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 ) ); 176 183 } 177 184 178 185 $bp = buddypress(); … … 1322 1329 * @since 1.7.0 1323 1330 */ 1324 1331 public function display() { 1325 $this->display_tablenav( 'top' ); ?>1332 $this->display_tablenav( 'top' ); 1326 1333 1334 $this->screen->render_screen_reader_content( 'heading_list' ); ?> 1335 1327 1336 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0"> 1328 1337 <thead> 1329 1338 <tr> … … 1388 1397 * @since 1.7.0 1389 1398 */ 1390 1399 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' ); 1392 1401 1402 $this->screen->render_screen_reader_content( 'heading_views' ); ?> 1403 1393 1404 <ul class="subsubsub"> 1394 1405 <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> 1395 1406 <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>