A WordPress-centric search engine for devs and theme authors



signup_nonce_check ›

Since3.0.0
Deprecatedn/a
signup_nonce_check ( $result )
Parameters:
  • (array) $result
    Required: Yes
Returns:
  • (array)
Defined at:
Codex:
Change Log:
  • MU

Process the signup nonce created in signup_nonce_fields().



Source

function signup_nonce_check( $result ) {
	if ( ! strpos( $_SERVER['PHP_SELF'], 'wp-signup.php' ) ) {
		return $result;
	}

	if ( wp_create_nonce( 'signup_form_' . $_POST['signup_form_id'] ) != $_POST['_signup_form'] ) {
		wp_die( __( 'Please try again.' ) );
	}

	return $result;
}