Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 06:50:42 PM (3 years 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/activate.php

    r13436 r13822  
    4343
    4444                        <?php if ( isset( $_GET['e'] ) ) : ?>
    45                                 <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
     45                                <p><?php esc_html_e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    4646                        <?php else : ?>
    4747                                <p>
    4848                                        <?php
    4949                                        /* translators: %s: login url */
    50                                         printf( __( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ), wp_login_url( bp_get_root_url() ) );
     50                                        printf(
     51                                                esc_html__( 'Your account was activated successfully! You can now %s with the username and password you provided when you signed up.', 'buddypress' ),
     52                                                '<a href="'. esc_url( wp_login_url( bp_get_root_url() ) ) . '">' . esc_html__( 'log in', 'buddypress' ) . '</a>'
     53                                        );
    5154                                        ?>
    5255                                </p>
    … …  
    5558                <?php else : ?>
    5659
    57                         <p><?php _e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
     60                        <p><?php esc_html_e( 'Please provide a valid activation key.', 'buddypress' ); ?></p>
    5861
    5962                        <form action="" method="post" class="standard-form" id="activation-form">
    6063
    61                                 <label for="key"><?php _e( 'Activation Key:', 'buddypress' ); ?></label>
     64                                <label for="key"><?php esc_html_e( 'Activation Key:', 'buddypress' ); ?></label>
    6265                                <input type="text" name="key" id="key" value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />
    6366
Note: See TracChangeset for help on using the changeset viewer.