Skip to:
Content

BuddyPress.org

Ticket #6741: 6741-add.2.patch

File 6741-add.2.patch, 1.8 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 heading and text for Activity screen pagination.
     301                if ( version_compare( $GLOBALS['wp_version'], '4.4', '>=' ) ) {
     302                        get_current_screen()->set_screen_reader_content( array(
     303                                'heading_pagination' => __( 'Activity list navigation', 'buddypress' ),
     304                        ) );
     305                }
    299306        }
    300307
    301308        // Enqueue CSS and JavaScript.
     
    12421249        function display() {
    12431250                $this->display_tablenav( 'top' ); ?>
    12441251
     1252                <h2 class="screen-reader-text"><?php _e( 'Activities list', 'buddypress' ); ?></h2>
     1253
    12451254                <table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>" cellspacing="0">
    12461255                        <thead>
    12471256                                <tr>
     
    13011310        function get_views() {
    13021311                $url_base = add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ); ?>
    13031312
     1313                <h2 class="screen-reader-text"><?php _e( 'Filter activities list', 'buddypress' ); ?></h2>
     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>