Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2016 09:46:41 PM (6 years ago)
Author:
mercime
Message:

Fix labels for the select form control in the new Autolink metabox.

Fixes #787.

File:
1 edited

Legend:

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

    r10558 r10584  
    14661466
    14671467        <div class="postbox">
    1468             <h2><label for="do-autolink"><?php esc_html_e( 'Autolink', 'buddypress' ); ?></label></h2>
     1468            <h2><?php esc_html_e( 'Autolink', 'buddypress' ); ?></h2>
    14691469            <div class="inside">
    1470                 <p class="description"><?php esc_html_e( 'On user profiles, link this field to a search of the Members directory, using the field value as a search term:', 'buddypress' ); ?></p>
     1470                <p class="description"><?php esc_html_e( 'On user profiles, link this field to a search of the Members directory, using the field value as a search term.', 'buddypress' ); ?></p>
    14711471
    14721472                <p>
    1473                     <label>
    1474                         <select name="do_autolink" id="do-autolink">
    1475                             <option value="on" <?php selected( $this->get_do_autolink() ); ?>><?php esc_html_e( 'Enabled', 'buddypress' ); ?></option>
    1476                             <option value="" <?php selected( $this->get_do_autolink(), false ); ?>><?php esc_html_e( 'Disabled', 'buddypress' ); ?></option>
    1477                         </select>
    1478                     </label>
     1473                    <label for="do-autolink" class="screen-reader-text"><?php esc_html_e( 'Autolink status for this field', 'buddypress' ); ?></label>
     1474                    <select name="do_autolink" id="do-autolink">
     1475                        <option value="on" <?php selected( $this->get_do_autolink() ); ?>><?php esc_html_e( 'Enabled', 'buddypress' ); ?></option>
     1476                        <option value="" <?php selected( $this->get_do_autolink(), false ); ?>><?php esc_html_e( 'Disabled', 'buddypress' ); ?></option>
     1477                    </select>
    14791478                </p>
    14801479            </div>
Note: See TracChangeset for help on using the changeset viewer.