Skip to:
Content

BuddyPress.org

Changeset 10281


Ignore:
Timestamp:
10/16/2015 03:16:41 PM (10 years ago)
Author:
mercime
Message:

Fix screen reader class of labels for textareas.

Fixes #6532.

Location:
trunk/src/bp-xprofile/classes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r10248 r10281  
    12891289            <h3><?php echo esc_html_x( 'Description', 'XProfile admin edit field', 'buddypress' ); ?></h3>
    12901290            <div class="inside">
    1291                 <label for="description" class="bp-screen-reader-text"><?php _e( 'Add description', 'buddypress' ); ?></label>
     1291                <label for="description" class="screen-reader-text"><?php esc_html_e( 'Add description', 'buddypress' ); ?></label>
    12921292                <textarea name="description" id="description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea>
    12931293            </div>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r10229 r10281  
    745745                            </div>
    746746                            <div class="postbox">
    747                                 <h3><?php _e( 'Field Group Description', 'buddypress' ); ?></h3>
     747                                <h3><?php esc_html_e( 'Field Group Description', 'buddypress' ); ?></h3>
    748748                                <div class="inside">
    749                                     <label for="group_description" class="bp-screen-reader-text"><?php _e( 'Add description', 'buddypress' ); ?></label>
     749                                    <label for="group_description" class="screen-reader-text"><?php esc_html_e( 'Add description', 'buddypress' ); ?></label>
    750750                                    <textarea name="group_description" id="group_description" rows="8" cols="60"><?php echo esc_textarea( $this->description ); ?></textarea>
    751751                                </div>
Note: See TracChangeset for help on using the changeset viewer.