Changeset 43569 for trunk/src/wp-activate.php
- Timestamp:
- 08/15/2018 06:22:00 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-activate.php
r43065 r43569 77 77 <div id="signup-content" class="widecolumn"> 78 78 <div class="wp-activate-container"> 79 <?php if ( empty( $_GET['key'] ) && empty( $_POST['key'] ) ) { ?> 79 <?php 80 if ( empty( $_GET['key'] ) && empty( $_POST['key'] ) ) { 81 ?> 80 82 81 83 <h2><?php _e( 'Activation Key Required' ); ?></h2> … … 90 92 </form> 91 93 92 <?php93 } else {94 <?php 95 } else { 94 96 95 $key = ! empty( $_GET['key'] ) ? $_GET['key'] : $_POST['key']; 96 $result = wpmu_activate_signup( $key ); 97 if ( is_wp_error( $result ) ) { 98 if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) { 99 $signup = $result->get_error_data(); 97 $key = ! empty( $_GET['key'] ) ? $_GET['key'] : $_POST['key']; 98 $result = wpmu_activate_signup( $key ); 99 if ( is_wp_error( $result ) ) { 100 if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) { 101 $signup = $result->get_error_data(); 102 ?> 103 <h2><?php _e( 'Your account is now active!' ); ?></h2> 104 <?php 105 echo '<p class="lead-in">'; 106 if ( $signup->domain . $signup->path == '' ) { 107 printf( 108 /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */ 109 __( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ), 110 network_site_url( 'wp-login.php', 'login' ), 111 $signup->user_login, 112 $signup->user_email, 113 wp_lostpassword_url() 114 ); 115 } else { 116 printf( 117 /* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */ 118 __( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ), 119 sprintf( '<a href="http://%1$s">%1$s</a>', $signup->domain ), 120 $signup->user_login, 121 $signup->user_email, 122 wp_lostpassword_url() 123 ); 124 } 125 echo '</p>'; 126 } else { 127 ?> 128 <h2><?php _e( 'An error occurred during the activation' ); ?></h2> 129 <p><?php echo $result->get_error_message(); ?></p> 130 <?php 131 } 132 } else { 133 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : ''; 134 $user = get_userdata( (int) $result['user_id'] ); 100 135 ?> 101 136 <h2><?php _e( 'Your account is now active!' ); ?></h2> 102 <?php103 echo '<p class="lead-in">';104 if ( $signup->domain . $signup->path == '' ) {105 printf(106 /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */107 __( 'Your account has been activated. You may now <a href="%1$s">log in</a> to the site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),108 network_site_url( 'wp-login.php', 'login' ),109 $signup->user_login,110 $signup->user_email,111 wp_lostpassword_url()112 );113 } else {114 printf(115 /* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */116 __( 'Your site at %1$s is active. You may now log in to your site using your chosen username of “%2$s”. Please check your email inbox at %3$s for your password and login instructions. If you do not receive an email, please check your junk or spam folder. If you still do not receive an email within an hour, you can <a href="%4$s">reset your password</a>.' ),117 sprintf( '<a href="http://%1$s">%1$s</a>', $signup->domain ),118 $signup->user_login,119 $signup->user_email,120 wp_lostpassword_url()121 );122 }123 echo '</p>';124 } else {125 ?>126 <h2><?php _e( 'An error occurred during the activation' ); ?></h2>127 <p><?php echo $result->get_error_message(); ?></p>128 <?php129 }130 } else {131 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';132 $user = get_userdata( (int) $result['user_id'] );133 ?>134 <h2><?php _e( 'Your account is now active!' ); ?></h2>135 137 136 138 <div id="signup-welcome"> … … 160 162 <?php 161 163 endif; 164 } 162 165 } 163 }164 166 ?> 165 167 </div>
Note: See TracChangeset
for help on using the changeset viewer.