Skip to:
Content

BuddyPress.org

Changeset 11169


Ignore:
Timestamp:
10/04/2016 12:34:47 AM (9 years ago)
Author:
mercime
Message:

Accessibility: Mark xProfile input fields in wp-admin as required.

Error prevention by indicating that the input fields for the Add New Field Name and
Add New Profile Field Group Name are need to be filled up by user.

Fixes #7274.

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

Legend:

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

    r11127 r11169  
    13301330        <div id="titlediv">
    13311331            <div class="titlewrap">
    1332                 <label id="title-prompt-text" for="title"><?php echo esc_html_x( 'Name', 'XProfile admin edit field', 'buddypress' ); ?></label>
     1332                <label id="title-prompt-text" for="title"><?php echo esc_html_x( 'Name (required)', 'XProfile admin edit field', 'buddypress' ); ?></label>
    13331333                <input type="text" name="title" id="title" value="<?php echo esc_attr( $this->name ); ?>" autocomplete="off" />
    13341334            </div>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r11030 r11169  
    748748                            <div id="titlediv">
    749749                                <div class="titlewrap">
    750                                     <label id="title-prompt-text" for="title"><?php esc_html_e( 'Field Group Name', 'buddypress') ?></label>
     750                                    <label id="title-prompt-text" for="title"><?php esc_html_e( 'Field Group Name (required)', 'buddypress') ?></label>
    751751                                    <input type="text" name="group_name" id="title" value="<?php echo esc_attr( $this->name ); ?>" autocomplete="off" />
    752752                                </div>
Note: See TracChangeset for help on using the changeset viewer.