wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



signup_nonce_check › WordPress Function

Depuis
Dépréciéen/a
signup_nonce_check ( $result )
Paramètres:
  • (array) $result
    Requis: Oui
Retourne:
  • (array)
Défini(e) dans:
Codex:
Changelog:
  • MU

Processes 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_verify_nonce( $_POST['_signup_form'], 'signup_form_' . $_POST['signup_form_id'] ) ) {
		$result['errors']->add( 'invalid_nonce', __( 'Unable to submit this form, please try again.' ) );
	}

	return $result;
}