| 1 | --- wp-signup.php~ 2011-11-15 22:44:48.000000000 +0200 |
|---|
| 2 | +++ wp-signup.php 2011-12-06 21:39:55.813500211 +0200 |
|---|
| 3 | @@ -159,6 +159,7 @@ |
|---|
| 4 | $blogname = $filtered_results['blogname']; |
|---|
| 5 | $blog_title = $filtered_results['blog_title']; |
|---|
| 6 | $errors = $filtered_results['errors']; |
|---|
| 7 | + $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; |
|---|
| 8 | |
|---|
| 9 | echo '<h2>' . sprintf( __( 'Get <em>another</em> %s site in seconds' ), $current_site->site_name ) . '</h2>'; |
|---|
| 10 | |
|---|
| 11 | @@ -184,7 +185,7 @@ |
|---|
| 12 | <p><?php _e( 'If you’re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p> |
|---|
| 13 | <form id="setupform" method="post" action="wp-signup.php"> |
|---|
| 14 | <input type="hidden" name="stage" value="gimmeanotherblog" /> |
|---|
| 15 | - <?php do_action( 'signup_hidden_fields' ); ?> |
|---|
| 16 | + <?php do_action( 'signup_hidden_fields', $stage ); ?> |
|---|
| 17 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
|---|
| 18 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p> |
|---|
| 19 | </form> |
|---|
| 20 | @@ -242,13 +243,14 @@ |
|---|
| 21 | $user_name = $filtered_results['user_name']; |
|---|
| 22 | $user_email = $filtered_results['user_email']; |
|---|
| 23 | $errors = $filtered_results['errors']; |
|---|
| 24 | + $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; |
|---|
| 25 | |
|---|
| 26 | ?> |
|---|
| 27 | |
|---|
| 28 | <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2> |
|---|
| 29 | <form id="setupform" method="post" action="wp-signup.php"> |
|---|
| 30 | <input type="hidden" name="stage" value="validate-user-signup" /> |
|---|
| 31 | - <?php do_action( 'signup_hidden_fields' ); ?> |
|---|
| 32 | + <?php do_action( 'signup_hidden_fields', $stage ); ?> |
|---|
| 33 | <?php show_user_form($user_name, $user_email, $errors); ?> |
|---|
| 34 | |
|---|
| 35 | <p> |
|---|
| 36 | @@ -311,6 +313,7 @@ |
|---|
| 37 | $blogname = $filtered_results['blogname']; |
|---|
| 38 | $blog_title = $filtered_results['blog_title']; |
|---|
| 39 | $errors = $filtered_results['errors']; |
|---|
| 40 | + $stage = isset( $_POST['stage'] ) ? $_POST['stage'] : 'default'; |
|---|
| 41 | |
|---|
| 42 | if ( empty($blogname) ) |
|---|
| 43 | $blogname = $user_name; |
|---|
| 44 | @@ -319,7 +322,7 @@ |
|---|
| 45 | <input type="hidden" name="stage" value="validate-blog-signup" /> |
|---|
| 46 | <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" /> |
|---|
| 47 | <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" /> |
|---|
| 48 | - <?php do_action( 'signup_hidden_fields' ); ?> |
|---|
| 49 | + <?php do_action( 'signup_hidden_fields', $stage ); ?> |
|---|
| 50 | <?php show_blog_form($blogname, $blog_title, $errors); ?> |
|---|
| 51 | <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p> |
|---|
| 52 | </form> |
|---|