Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 06:50:42 PM (10 months ago)
Author:
imath
Message:

BP Legacy: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/members/single/settings/general.php

    r13443 r13822  
    1111do_action( 'bp_before_member_settings_template' ); ?>
    1212
    13 <h2 class="bp-screen-reader-text"><?php
    14     /* translators: accessibility text */
    15     _e( 'Account settings', 'buddypress' );
    16 ?></h2>
     13<h2 class="bp-screen-reader-text">
     14    <?php
     15        /* translators: accessibility text */
     16        esc_html_e( 'Account settings', 'buddypress' );
     17    ?>
     18</h2>
    1719
    1820<form action="<?php bp_displayed_user_link( array( bp_get_settings_slug(), 'general' ) ); ?>" method="post" class="standard-form" id="settings-form">
     
    2022    <?php if ( ! is_super_admin() ) : ?>
    2123
    22         <label for="pwd"><?php _e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
    23         <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<a href="<?php echo wp_lostpassword_url(); ?>"><?php _e( 'Lost your password?', 'buddypress' ); ?></a>
     24        <label for="pwd"><?php esc_html_e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
     25        <input type="password" name="pwd" id="pwd" size="16" value="" class="settings-input small" <?php bp_form_field_attributes( 'password' ); ?>/> &nbsp;<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php esc_html_e( 'Lost your password?', 'buddypress' ); ?></a>
    2426
    2527    <?php endif; ?>
    2628
    27     <label for="email"><?php _e( 'Account Email', 'buddypress' ); ?></label>
    28     <input type="email" name="email" id="email" value="<?php echo bp_get_displayed_user_email(); ?>" class="settings-input" <?php bp_form_field_attributes( 'email' ); ?>/>
     29    <label for="email"><?php esc_html_e( 'Account Email', 'buddypress' ); ?></label>
     30    <input type="email" name="email" id="email" value="<?php echo esc_attr( bp_get_displayed_user_email() ); ?>" class="settings-input" <?php bp_form_field_attributes( 'email' ); ?>/>
    2931
    30     <label for="pass1"><?php _e( 'Change Password <span>(leave blank for no change)</span>', 'buddypress' ); ?></label>
     32    <label for="pass1"><?php printf( esc_html__( 'Change Password %s', 'buddypress' ), '<span>' . esc_html__( '(leave blank for no change)', 'buddypress' ) . '</span>' ); ?></label>
    3133    <input type="password" name="pass1" id="pass1" size="16" value="" class="settings-input small password-entry" <?php bp_form_field_attributes( 'password' ); ?>/>
    3234    <div id="pass-strength-result"></div>
    33     <label for="pass2"><?php _e( 'Repeat New Password', 'buddypress' );
     35    <label for="pass2"><?php esc_html_e( 'Repeat New Password', 'buddypress' );
    3436    ?></label>
    3537    <input type="password" name="pass2" id="pass2" size="16" value="" class="settings-input small password-entry-confirm" <?php bp_form_field_attributes( 'password' ); ?>/>
Note: See TracChangeset for help on using the changeset viewer.