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-textbox.php

    r10301 r10305  
    9292        $r = bp_parse_args( $raw_properties, array(
    9393            'type' => 'text'
    94         ) );
     94        ) ); ?>
    9595
    96         if ( is_admin() ) : ?>
    97 
    98             <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'Textbox', 'buddypress' ); ?></label>
    99             <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    100 
    101         <?php else : ?>
    102 
    103             <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    104 
    105         <?php endif; ?>
     96        <label for="<?php bp_the_profile_field_input_name(); ?>" class="screen-reader-text"><?php esc_html_e( 'Textbox', 'buddypress' ); ?></label>
     97        <input <?php echo $this->get_edit_field_html_elements( $r ); ?>>
    10698
    10799        <?php
Note: See TracChangeset for help on using the changeset viewer.