Skip to:
Content

BuddyPress.org

Changeset 13860


Ignore:
Timestamp:
05/11/2024 09:47:14 AM (16 months ago)
Author:
imath
Message:

BP Legacy: better escape the settings front screen current pwd label

  • Split the translatable string in 2 parts and move out of it the <span> html tags.
  • Add translators guide

Props gingerbooch

See #9155 (trunk)

File:
1 edited

Legend:

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

    r13822 r13860  
    2222    <?php if ( ! is_super_admin() ) : ?>
    2323
    24         <label for="pwd"><?php esc_html_e( 'Current Password <span>(required to update email or change current password)</span>', 'buddypress' ); ?></label>
     24        <label for="pwd">
     25            <?php
     26            /* translators: %s: the required text information. */
     27            printf( esc_html__( 'Current Password %s', 'buddypress' ), '<span>' . esc_html_x( '(required to update email or change current password)', 'required text information', 'buddypress' ) . '</span>' );
     28            ?>
     29        </label>
    2530        <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>
    2631
Note: See TracChangeset for help on using the changeset viewer.