Skip to:
Content

BuddyPress.org

Changeset 10591


Ignore:
Timestamp:
02/14/2016 12:34:37 PM (8 years ago)
Author:
djpaul
Message:

Log in widget: avoid using HTML in translation strings, and escaping improvements.

Fixes #6905, props ramiy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-login-widget.php

    r10518 r10591  
    117117                <?php if ( bp_get_signup_allowed() ) : ?>
    118118
    119                     <span class="bp-login-widget-register-link"><?php printf( __( '<a href="%s" title="Register for a new account">Register</a>', 'buddypress' ), bp_get_signup_page() ); ?></span>
     119                    <span class="bp-login-widget-register-link"><a href="<?php echo esc_url( bp_get_signup_page() ); ?>" title="<?php esc_attr_e( 'Register for a new account', 'buddypress' ); ?>"><?php _e( 'Register', 'buddypress' ); ?></a></span>
    120120
    121121                <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.