-
+
- get_error_code() || 'blog_taken' == $result->get_error_code() ) {
- $signup = $result->get_error_data();
- ?>
-
- ';
- if ( $signup->domain . $signup->path == '' ) {
- printf(
- /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
- __( 'Your account has been activated. You may now
log in 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
reset your password.' ),
- network_site_url( 'wp-login.php', 'login' ),
- $signup->user_login,
- $signup->user_email,
- wp_lostpassword_url()
- );
- } else {
- printf(
- /* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */
- __( '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
reset your password.' ),
- sprintf( '
%1$s', $signup->domain ),
- $signup->user_login,
- $signup->user_email,
- wp_lostpassword_url()
- );
- }
- echo '';
- } else {
- ?>
-
+ $key = ! empty( $_GET['key'] ) ? $_GET['key'] : $_POST['key'];
+ $result = wpmu_activate_signup( $key );
+ if ( is_wp_error( $result ) ) {
+ if ( 'already_active' == $result->get_error_code() || 'blog_taken' == $result->get_error_code() ) {
+ $signup = $result->get_error_data();
+ ?>
+
+ ';
+ if ( $signup->domain . $signup->path == '' ) {
+ printf(
+ /* translators: 1: login URL, 2: username, 3: user email, 4: lost password URL */
+ __( 'Your account has been activated. You may now
log in 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
reset your password.' ),
+ network_site_url( 'wp-login.php', 'login' ),
+ $signup->user_login,
+ $signup->user_email,
+ wp_lostpassword_url()
+ );
+ } else {
+ printf(
+ /* translators: 1: site URL, 2: username, 3: user email, 4: lost password URL */
+ __( '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
reset your password.' ),
+ sprintf( '
%1$s', $signup->domain ),
+ $signup->user_login,
+ $signup->user_email,
+ wp_lostpassword_url()
+ );
+ }
+ echo '';
+ } else {
+ ?>
+
get_error_message(); ?>
-
+ }
+ } else {
+ $url = isset( $result['blog_id'] ) ? get_home_url( (int) $result['blog_id'] ) : '';
+ $user = get_userdata( (int) $result['user_id'] );
+ ?>
+
user_login; ?>
@@ -159,8 +161,8 @@ get_header( 'wp-activate' );
diff --git a/wp-admin/freedoms.php b/wp-admin/freedoms.php
index 110959449d..ecf44a3ebc 100644
--- a/wp-admin/freedoms.php
+++ b/wp-admin/freedoms.php
@@ -17,6 +17,14 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
$is_privacy_notice = isset( $_GET['privacy-notice'] );
+if ( $is_privacy_notice ) {
+ $freedoms_class = '';
+ $privacy_class = ' nav-tab-active';
+} else {
+ $freedoms_class = ' nav-tab-active';
+ $privacy_class = '';
+}
+
?>