Ticket #6741: 6741-add.patch
File 6741-add.patch, 2.0 KB (added by , 9 years ago) |
---|
-
src/bp-activity/bp-activity-admin.php
296 296 '<p><strong>' . __( 'For more information:', 'buddypress' ) . '</strong></p>' . 297 297 '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>' 298 298 ); 299 300 // Add accessible hidden headings and text for Activity screen. 301 get_current_screen()->set_screen_reader_content( array( 302 'heading_views' => __( 'Filter activity list', 'buddypress' ), 303 'heading_pagination' => __( 'Activity list navigation', 'buddypress' ), 304 'heading_list' => __( 'Activity list', 'buddypress' ), 305 ) ); 299 306 } 300 307 301 308 // Enqueue CSS and JavaScript. … … 1240 1247 * @since 1.6.0 1241 1248 */ 1242 1249 function display() { 1243 $this->display_tablenav( 'top' ); ?>1250 $this->display_tablenav( 'top' ); 1244 1251 1252 $this->screen->render_screen_reader_content( 'heading_list' ); ?> 1253 1245 1254 <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0"> 1246 1255 <thead> 1247 1256 <tr> … … 1299 1308 * @since 1.6.0 1300 1309 */ 1301 1310 function get_views() { 1302 $url_base = add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ); ?>1311 $url_base = add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ); 1303 1312 1313 $this->screen->render_screen_reader_content( 'heading_views' ); ?> 1314 1304 1315 <ul class="subsubsub"> 1305 1316 <li class="all"><a href="<?php echo esc_url( $url_base ); ?>" class="<?php if ( 'spam' != $this->view ) echo 'current'; ?>"><?php _e( 'All', 'buddypress' ); ?></a> |</li> 1306 1317 <li class="spam"><a href="<?php echo esc_url( add_query_arg( array( 'activity_status' => 'spam' ), $url_base ) ); ?>" class="<?php if ( 'spam' == $this->view ) echo 'current'; ?>"><?php printf( __( 'Spam <span class="count">(%s)</span>', 'buddypress' ), number_format_i18n( $this->spam_count ) ); ?></a></li>