signup_nonce_fields

The timeline below displays how wordpress function signup_nonce_fields has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.1

/**
 * Adds a nonce field to the signup page.
 *
 * @since MU (3.0.0)
 */
function signup_nonce_fields()
{
    $id = mt_rand();
    echo "<input type='hidden' name='signup_form_id' value='{$id}' />";
    wp_nonce_field('signup_form_' . $id, '_signup_form', false);
}

WordPress Version: 4.9

/**
 * Add a nonce field to the signup page.
 *
 * @since MU (3.0.0)
 */
function signup_nonce_fields()
{
    $id = mt_rand();
    echo "<input type='hidden' name='signup_form_id' value='{$id}' />";
    wp_nonce_field('signup_form_' . $id, '_signup_form', false);
}

WordPress Version: 4.1

/**
 * Add a nonce field to the signup page.
 *
 * @since MU
 */
function signup_nonce_fields()
{
    $id = mt_rand();
    echo "<input type='hidden' name='signup_form_id' value='{$id}' />";
    wp_nonce_field('signup_form_' . $id, '_signup_form', false);
}

WordPress Version: 3.7

/**
 * Add a nonce field to the signup page.
 *
 * @since MU
 * @uses wp_nonce_field()
 */
function signup_nonce_fields()
{
    $id = mt_rand();
    echo "<input type='hidden' name='signup_form_id' value='{$id}' />";
    wp_nonce_field('signup_form_' . $id, '_signup_form', false);
}