Make WordPress Core

Ticket #19451: 19451.4.diff

File 19451.4.diff, 2.0 KB (added by jeremyfelt, 11 years ago)
  • src/wp-signup.php

     
    239239        <p><?php _e( 'If you&#8217;re not going to use a great site domain, leave it for a new user. Now have at it!' ) ?></p>
    240240        <form id="setupform" method="post" action="wp-signup.php">
    241241                <input type="hidden" name="stage" value="gimmeanotherblog" />
    242                 <?php do_action( 'signup_hidden_fields' ); ?>
     242                <?php
     243                /**
     244                 * Hidden signup form fields output for creating another site.
     245                 *
     246                 * @since MU
     247                 *
     248                 * @param string null Will be 'create-another-site', 'validate-user', or 'validate-site'
     249                 *                    depending on the step of the signup process.
     250                 */
     251                do_action( 'signup_hidden_fields', 'create-another-site' );
     252                ?>
    243253                <?php show_blog_form($blogname, $blog_title, $errors); ?>
    244254                <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e( 'Create Site' ) ?>" /></p>
    245255        </form>
     
    330340        <h2><?php printf( __( 'Get your own %s account in seconds' ), $current_site->site_name ) ?></h2>
    331341        <form id="setupform" method="post" action="wp-signup.php">
    332342                <input type="hidden" name="stage" value="validate-user-signup" />
    333                 <?php do_action( 'signup_hidden_fields' ); ?>
     343                <?php
     344                //duplicate hook
     345                do_action( 'signup_hidden_fields', 'validate-user' );
     346                ?>
    334347                <?php show_user_form($user_name, $user_email, $errors); ?>
    335348
    336349                <p>
     
    432445                <input type="hidden" name="stage" value="validate-blog-signup" />
    433446                <input type="hidden" name="user_name" value="<?php echo esc_attr($user_name) ?>" />
    434447                <input type="hidden" name="user_email" value="<?php echo esc_attr($user_email) ?>" />
    435                 <?php do_action( 'signup_hidden_fields' ); ?>
     448                <?php
     449                //duplicate hook
     450                do_action( 'signup_hidden_fields', 'validate-site' );
     451                ?>
    436452                <?php show_blog_form($blogname, $blog_title, $errors); ?>
    437453                <p class="submit"><input type="submit" name="submit" class="submit" value="<?php esc_attr_e('Signup') ?>" /></p>
    438454        </form>