Skip to:
Content

BuddyPress.org

Ticket #6951: 6951.patch

File 6951.patch, 5.1 KB (added by SergeyBiryukov, 9 years ago)
  • src/bp-activity/bp-activity-admin.php

     
    299299                // Add accessible hidden heading and text for Activity screen pagination.
    300300                if ( bp_get_major_wp_version() >= 4.4 ) {
    301301                        get_current_screen()->set_screen_reader_content( array(
     302                                /* translators: accessibility text */
    302303                                'heading_pagination' => __( 'Activity list navigation', 'buddypress' ),
    303304                        ) );
    304305                }
  • src/bp-activity/classes/class-bp-activity-list-table.php

     
    304304        function get_views() {
    305305                $url_base = add_query_arg( array( 'page' => 'bp-activity' ), bp_get_admin_url( 'admin.php' ) ); ?>
    306306
    307                 <h2 class="screen-reader-text"><?php _e( 'Filter activities list', 'buddypress' ); ?></h2>
     307                <h2 class="screen-reader-text"><?php
     308                        /* translators: accessibility text */
     309                        _e( 'Filter activities list', 'buddypress' );
     310                ?></h2>
    308311
    309312                <ul class="subsubsub">
    310313                        <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>
     
    414417                $activity_actions = bp_activity_get_actions(); ?>
    415418
    416419                <div class="alignleft actions">
    417                         <label for="activity-type" class="screen-reader-text"><?php _e( 'Filter by activity type', 'buddypress' ); ?></label>
     420                        <label for="activity-type" class="screen-reader-text"><?php
     421                                /* translators: accessibility text */
     422                                _e( 'Filter by activity type', 'buddypress' );
     423                        ?></label>
    418424                        <select name="activity_type" id="activity-type">
    419425                                <option value="" <?php selected( ! $selected ); ?>><?php _e( 'View all actions', 'buddypress' ); ?></option>
    420426
  • src/bp-core/admin/bp-core-admin-components.php

     
    150150                        break;
    151151        } ?>
    152152
    153         <h3 class="screen-reader-text"><?php _e( 'Filter components list', 'buddypress' ); ?></h3>
     153        <h3 class="screen-reader-text"><?php
     154                /* translators: accessibility text */
     155                _e( 'Filter components list', 'buddypress' );
     156        ?></h3>
    154157
    155158        <ul class="subsubsub">
    156159                <li><a href="<?php echo esc_url( add_query_arg( array( 'page' => 'bp-components', 'action' => 'all'      ), bp_get_admin_url( $page ) ) ); ?>" <?php if ( $action === 'all'      ) : ?>class="current"<?php endif; ?>><?php printf( _nx( 'All <span class="count">(%s)</span>',      'All <span class="count">(%s)</span>',      $all_count,         'plugins', 'buddypress' ), number_format_i18n( $all_count                    ) ); ?></a> | </li>
  • src/bp-groups/bp-groups-admin.php

     
    177177                // Add accessible hidden heading and text for Groups screen pagination.
    178178                if ( bp_get_major_wp_version() >= 4.4 ) {
    179179                        get_current_screen()->set_screen_reader_content( array(
     180                                /* translators: accessibility text */
    180181                                'heading_pagination' => __( 'Groups list navigation', 'buddypress' ),
    181182                        ) );
    182183                }
  • src/bp-groups/classes/class-bp-groups-list-table.php

     
    284284        public function get_views() {
    285285                $url_base = bp_get_admin_url( 'admin.php?page=bp-groups' ); ?>
    286286
    287                 <h2 class="screen-reader-text"><?php _e( 'Filter groups list', 'buddypress' ); ?></h2>
     287                <h2 class="screen-reader-text"><?php
     288                        /* translators: accessibility text */
     289                        _e( 'Filter groups list', 'buddypress' );
     290                ?></h2>
    288291
    289292                <ul class="subsubsub">
    290293                        <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>
  • src/bp-members/classes/class-bp-members-admin.php

     
    14511451                        // Add accessible hidden headings and text for the Pending Users screen.
    14521452                        if ( bp_get_major_wp_version() >= 4.4 ) {
    14531453                                get_current_screen()->set_screen_reader_content( array(
     1454                                        /* translators: accessibility text */
    14541455                                        'heading_views'      => __( 'Filter users list', 'buddypress' ),
     1456                                        /* translators: accessibility text */
    14551457                                        'heading_pagination' => __( 'Pending users list navigation', 'buddypress' ),
     1458                                        /* translators: accessibility text */
    14561459                                        'heading_list'       => __( 'Pending users list', 'buddypress' ),
    14571460                                ) );
    14581461                        }