Skip to:
Content

Changeset 12221


Ignore:
Timestamp:
09/07/2018 01:45:54 PM (9 months ago)
Author:
djpaul
Message:

Users, Registration: fix Log In link on account activation screen.

Refactoring the message to remove HTML from the original sentance has made it
easier to keep the correct HTML escaping and keep the link.

Props imath

Fixes #7894 (branch 3.0)

Location:
branches/3.0/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/src/bp-members/bp-members-adminbar.php

    r10843 r12221  
    5353        $wp_admin_bar->add_menu( array(
    5454            'id'    => 'bp-login',
    55             'title' => __( 'Log in', 'buddypress' ),
     55            'title' => __( 'Log In', 'buddypress' ),
    5656            'href'  => wp_login_url( bp_get_requested_url() )
    5757        ) );
  • branches/3.0/src/bp-templates/bp-nouveau/buddypress/members/activate.php

    r12157 r12221  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 3.2.0
    77 */
    88?>
     
    2121                <p><?php esc_html_e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    2222            <?php else : ?>
    23                 <p>
    24                     <?php
    25                     echo esc_html(
    26                         sprintf(
    27                             __( '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' ),
    28                             wp_login_url( bp_get_root_domain() )
    29                         )
    30                     );
    31                     ?>
    32                 </p>
     23                <p><?php esc_html_e( 'Your account was activated successfully! You can now log in with the username and password you provided when you signed up.', 'buddypress' ); ?></p>
    3324            <?php endif; ?>
     25
     26            <?php
     27            printf(
     28                '<p><a href="%1$s">%2$s</a></p>',
     29                esc_url( wp_login_url( bp_get_root_domain() ) ),
     30                esc_html__( 'Log In', 'buddypress' )
     31            );
     32            ?>
    3433
    3534        <?php else : ?>
Note: See TracChangeset for help on using the changeset viewer.