Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/22/2015 09:04:44 AM (9 years ago)
Author:
djpaul
Message:

xProfile: adjust wp-admin field labels

The admin_field_html method is only used inside wp-admin, so there's
no need to wrap these template bits inside is_admin checks.

Partially reverts the changes in r10298:10302. See #6655

File:
1 edited

Legend:

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

    r10302 r10305  
    9494        $r = bp_parse_args( $raw_properties, array(
    9595            'type' => 'url'
    96         ) );
     96        ) ); ?>
    9797
    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; ?>
     98        <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'URL', 'buddypress' ); ?></label>
     99        <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    108100
    109101        <?php
Note: See TracChangeset for help on using the changeset viewer.