[buddypress-trac] [BuddyPress Trac] #7894: Broken Login Link after activation

buddypress-trac noreply at wordpress.org
Mon Jul 30 18:07:36 UTC 2018


#7894: Broken Login Link after activation
---------------------------------------+-----------------------
 Reporter:  vapvarun                   |       Owner:  imath
     Type:  defect (bug)               |      Status:  assigned
 Priority:  normal                     |   Milestone:  3.2.0
Component:  Core                       |     Version:  3.0.0
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |
---------------------------------------+-----------------------

Comment (by macsgv):

 Hello, I have tried the patch 7894.2.patch and I get a blank page.


 This is correct?

 {{{
 <?php
 /**
  * BuddyPress - Members Activate
  *
  * @since 3.0.0
  * @version 3.1.0
  */
 ?>

         <?php bp_nouveau_activation_hook( 'before', 'page' ); ?>

         <div class="page" id="activate-page">

                 <?php bp_nouveau_template_notices(); ?>

                 <?php bp_nouveau_activation_hook( 'before', 'content' );
 ?>

                 <?php if ( bp_account_was_activated() ) : ?>

                         <?php if ( isset( $_GET['e'] ) ) : ?>
                                 <p><?php esc_html_e( 'Your account was
 activated successfully! Your account details have been sent to you in a
 separate email.', 'buddypress' ); ?></p>
                                                 <?php else : ?>
                                 <p>
                                         <?php
 -                                       echo esc_html(
 -                                               sprintf(
 -                                                       __( '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_domain() )
 -                                               )
 +                                       echo sprintf(
 +                                               /* Translators: %s is used
 to output the Login link */
 +                                               esc_html__( 'Your account
 was activated successfully! You can now %s with the username and password
 you provided when you signed up.', 'buddypress' ),
 +                                               '<a href="' .
 wp_login_url( bp_get_root_domain() ) . '"> ' . esc_html_x( 'log in',
 'Activated signup confirmation message', 'buddypress' ) . '</a>'
                                         );
                                         ?>
                                 </p>
                         <?php endif; ?>

                 <?php else : ?>

                         <p><?php esc_html_e( 'Please provide a valid
 activation key.', 'buddypress' ); ?></p>

                         <form action="" method="post" class="standard-
 form" id="activation-form">

                                 <label for="key"><?php esc_html_e(
 'Activation Key:', 'buddypress' ); ?></label>
                                 <input type="text" name="key" id="key"
 value="<?php echo esc_attr( bp_get_current_activation_key() ); ?>" />

                                 <p class="submit">
                                         <input type="submit" name="submit"
 value="<?php echo esc_attr_x( 'Activate', 'button', 'buddypress' ); ?>" />
                                 </p>

                         </form>

                 <?php endif; ?>

                 <?php bp_nouveau_activation_hook( 'after', 'content' ); ?>

         </div><!-- .page -->

         <?php bp_nouveau_activation_hook( 'after', 'page' ); ?>

 }}}

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7894#comment:14>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list