Skip to:
Content

BuddyPress.org

Changeset 10812


Ignore:
Timestamp:
05/25/2016 06:39:15 PM (8 years ago)
Author:
mercime
Message:

Accessibility: Add label tags for textarea elements in Activity admin.

Fixes #7089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-admin.php

    r10739 r10812  
    678678                                    <h2><?php _e( 'Action', 'buddypress' ); ?></h2>
    679679                                    <div class="inside">
     680                                        <label for="bp-activities-action" class="screen-reader-text"><?php
     681                                            /* translators: accessibility text */
     682                                            _e( 'Edit activity action', 'buddypress' );
     683                                        ?></label>
    680684                                        <?php wp_editor( stripslashes( $activity->action ), 'bp-activities-action', array( 'media_buttons' => false, 'textarea_rows' => 7, 'teeny' => true, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,code,spell,close' ) ) ); ?>
    681685                                    </div>
     
    685689                                    <h2><?php _e( 'Content', 'buddypress' ); ?></h2>
    686690                                    <div class="inside">
     691                                        <label for="bp-activities-content" class="screen-reader-text"><?php
     692                                            /* translators: accessibility text */
     693                                            _e( 'Edit activity content', 'buddypress' );
     694                                        ?></label>
    687695                                        <?php wp_editor( stripslashes( $activity->content ), 'bp-activities-content', array( 'media_buttons' => false, 'teeny' => true, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,code,spell,close' ) ) ); ?>
    688696                                    </div>
     
    10261034
    10271035                        <h3 id="bp-replyhead"><?php _e( 'Reply to Activity', 'buddypress' ); ?></h3>
     1036                        <label for="bp-activities" class="screen-reader-text"><?php
     1037                                /* translators: accessibility text */
     1038                                _e( 'Reply', 'buddypress' );
     1039                            ?></label>
    10281040                        <?php wp_editor( '', 'bp-activities', array( 'dfw' => false, 'media_buttons' => false, 'quicktags' => array( 'buttons' => 'strong,em,link,block,del,ins,img,code,spell,close' ), 'tinymce' => false, ) ); ?>
    10291041
Note: See TracChangeset for help on using the changeset viewer.