Make WordPress Core

Changeset 25600


Ignore:
Timestamp:
09/24/2013 03:50:06 PM (10 years ago)
Author:
nacin
Message:

Context for the signup_hidden_fields hooks.

props jeremyfelt, Cimmo.
fixes #19451.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-signup.php

    r25112 r25600  
    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 $context A string describing the step of the signup process. the value can be
     249         *                        'create-another-site', 'validate-user', or 'validate-site'.
     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>
     
    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
     
    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>
Note: See TracChangeset for help on using the changeset viewer.