Skip to:
Content

BuddyPress.org

Changeset 10302


Ignore:
Timestamp:
10/22/2015 01:44:39 AM (11 years ago)
Author:
mercime
Message:

xProfile: Add label for url fields in wp-admin.

See #6655.

File:
1 edited

Legend:

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

    r10203 r10302  
    9494                $r = bp_parse_args( $raw_properties, array(
    9595                        'type' => 'url'
    96                 ) ); ?>
     96                ) );
    9797
    98                 <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     98                if ( is_admin() ) : ?>
     99
     100                        <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'URL', 'buddypress' ); ?></label>
     101                        <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     102
     103                <?php else : ?>
     104
     105                        <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
     106
     107                <?php endif; ?>
    99108
    100109                <?php
Note: See TracChangeset for help on using the changeset viewer.