Ticket #6742: 6742.3.patch
File 6742.3.patch, 1.8 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 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 } 176 183 } 177 184 178 185 $bp = buddypress(); … … 1322 1329 public function display() { 1323 1330 $this->display_tablenav( 'top' ); ?> 1324 1331 1332 <h2 class="screen-reader-text"><?php _e( 'Groups list', 'buddypress' ); ?></h2> 1333 1325 1334 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0"> 1326 1335 <thead> 1327 1336 <tr> … … 1388 1397 public function get_views() { 1389 1398 $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?> 1390 1399 1400 <h2 class="screen-reader-text"><?php _e( 'Filter groups list', 'buddypress' ); ?></h2> 1401 1391 1402 <ul class="subsubsub"> 1392 1403 <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> 1393 1404 <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>