diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 7b9a9eac51..14a6a63411 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -148,7 +148,7 @@ Please click the following link to confirm the invite: if ( isset( $_POST[ 'noconfirmation' ] ) && current_user_can( 'manage_network_users' ) ) { $key = $wpdb->get_var( $wpdb->prepare( "SELECT activation_key FROM {$wpdb->signups} WHERE user_login = %s AND user_email = %s", $new_user_login, $new_user_email ) ); $new_user = wpmu_activate_signup( $key ); - if ( ! is_wp_error( $new_user ) ) { + if ( is_wp_error( $new_user ) ) { $redirect = add_query_arg( array( 'update' => 'addnoconfirmation' ), 'user-new.php' ); } else { $redirect = add_query_arg( array( 'update' => 'addnoconfirmation', 'user_id' => $new_user['user_id'] ), 'user-new.php' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 5055e6086d..2f55c180cf 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-beta2-38006'; +$wp_version = '4.6-beta2-38007'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.