Definition:
function signup_nonce_check( $result ) {}
Process the signup nonce created in signup_nonce_fields().
Parameters
- array $result
Source code
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;
}
2881

February 12, 2011 


No comments yet... Be the first to leave a reply!