Skip to:
Content

BuddyPress.org

Ticket #6741: 6741-add.patch

File 6741-add.patch, 2.0 KB (added by mercime, 9 years ago)
  • src/bp-activity/bp-activity-admin.php

     
    296296                        '<p><strong>' . __( 'For more information:', 'buddypress' ) . '</strong></p>' .
    297297                        '<p>' . __( '<a href="https://buddypress.org/support/">Support Forums</a>', 'buddypress' ) . '</p>'
    298298                );
     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                ) );
    299306        }
    300307
    301308        // Enqueue CSS and JavaScript.
     
    12401247         * @since 1.6.0
    12411248         */
    12421249        function display() {
    1243                 $this->display_tablenav( 'top' ); ?>
     1250                $this->display_tablenav( 'top' );
    12441251
     1252                $this->screen->render_screen_reader_content( 'heading_list' ); ?>
     1253
    12451254                <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
    12461255                        <thead>
    12471256                                <tr>
     
    12991308         * @since 1.6.0
    13001309         */
    13011310        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' ) );
    13031312
     1313                $this->screen->render_screen_reader_content( 'heading_views' ); ?>
     1314
    13041315                <ul class="subsubsub">
    13051316                        <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>
    13061317                        <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>