Multiple nonces with the same action name
-
Hi,
I have multiple forms on a website, and all of them contain an unique nonce name, example:
$nonce_field_one = wp_nonce_field( 'my_nonce_action', 'nonce_one', true, false ); $nonce_field_two = wp_nonce_field( 'my_nonce_action', 'nonce_two', true, false );
My question: should I also have an unique action name for every nonce, or can I use the same action name for all nonces?
It does work with the same action name, but it’s not clear to me whether this can cause conflicts between the various nonces or not?
Guido
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Multiple nonces with the same action name’ is closed to new replies.