Changeset 44574 for trunk/src/wp-activate.php
- Timestamp:
- 01/12/2019 06:40:16 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-activate.php
r44048 r44574 136 136 137 137 <?php 138 } else {139 if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) {140 $signup = $result->get_error_data();141 ?>138 } else { 139 if ( is_wp_error( $result ) && in_array( $result->get_error_code(), $valid_error_codes ) ) { 140 $signup = $result->get_error_data(); 141 ?> 142 142 <h2><?php _e( 'Your account is now active!' ); ?></h2> 143 143 <?php … … 163 163 } 164 164 echo '</p>'; 165 } elseif ( $result === null || is_wp_error( $result ) ) {166 ?>165 } elseif ( $result === null || is_wp_error( $result ) ) { 166 ?> 167 167 <h2><?php _e( 'An error occurred during the activation' ); ?></h2> 168 168 <?php if ( is_wp_error( $result ) ) : ?> … … 170 170 <?php endif; ?> 171 171 <?php 172 } else {173 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';174 $user = get_userdata( (int) $result['user_id'] );175 ?>172 } else { 173 $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : ''; 174 $user = get_userdata( (int) $result['user_id'] ); 175 ?> 176 176 <h2><?php _e( 'Your account is now active!' ); ?></h2> 177 177 … … 200 200 ?> 201 201 </p> 202 <?php 203 endif; 202 <?php 203 endif; 204 } 204 205 } 205 } 206 ?> 206 ?> 207 207 </div> 208 208 </div>
Note: See TracChangeset
for help on using the changeset viewer.