From abaa96668d9bde34104a2bb46c2cc1fbabff6e15 Mon Sep 17 00:00:00 2001 From: donncha Date: Wed, 28 Mar 2007 12:30:58 +0000 Subject: Better text when user account is created git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@940 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-activate.php | 40 +++++++++++++++++++++------------------- 1 file changed, 21 insertions(+), 19 deletions(-) (limited to 'wp-activate.php') diff --git a/wp-activate.php b/wp-activate.php index 41af75b..fbb99f9 100644 --- a/wp-activate.php +++ b/wp-activate.php @@ -3,7 +3,6 @@ define( "WP_INSTALLING", true ); require ('wp-config.php'); require_once( ABSPATH . WPINC . '/registration.php'); - do_action("activate_header"); get_header(); @@ -23,7 +22,7 @@ form { margin-top: 2em; } }

@@ -39,22 +38,22 @@ form { margin-top: 2em; }
get_error_code() ) + echo __('You have already activated your account. Please check your email inbox for your username, password, and login instructions.'); + else + echo $result->get_error_message(); } else { - if ( ! empty($_GET['key']) ) - $key = $_GET['key']; - else - $key = $_POST['key']; - - $result = wpmu_activate_signup($key); - if ( is_wp_error($result) ) { - if ( 'already_active' == $result->get_error_code() ) - echo __('The blog is already active. Please check your email inbox for your username, password, and login instructions.'); - else - echo $result->get_error_message(); - } else { - extract($result); - $url = get_blogaddress_by_id($blog_id); - $user = new WP_User($user_id); + extract($result); + $url = get_blogaddress_by_id($blog_id); + $user = new WP_User($user_id); ?>

@@ -68,10 +67,13 @@ form { margin-top: 2em; }
-

View your site or Login'), $url, $url . 'wp-login.php' ); ?>

-domain . $current_site->path ) { ?> +

View your site or Login'), $url, $url . 'wp-login.php' ); ?>

Login or go back to the homepage.' ), 'http://' . $current_site->domain . $current_site->path . 'wp-login.php', 'http://' . $current_site->domain . $current_site->path ); ?>

-- cgit