signup_nonce_check

Process the signup nonce created in signup_nonce_fields().

Description

(array) signup_nonce_check( (array) $result ); 

Returns (array)

Parameters (1)

0. $result (array)
The result.

Usage

  1. if ( !function_exists( 'signup_nonce_check' ) ) { 
  2. require_once ABSPATH . WPINC . '/ms-functions.php'; 
  3.  
  4. // The result. 
  5. $result = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = signup_nonce_check($result); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/ms-functions.php  
  1. function signup_nonce_check( $result ) { 
  2. if ( !strpos( $_SERVER[ 'PHP_SELF' ], 'wp-signup.php' ) ) 
  3. return $result; 
  4.  
  5. if ( wp_create_nonce('signup_form_' . $_POST[ 'signup_form_id' ]) != $_POST['_signup_form'] ) 
  6. wp_die( __( 'Please try again.' ) ); 
  7.  
  8. return $result;